Gst-nvstreammux New Alpha plugin not work

i want to use nvstreammux without image scale, only mux these images to batch data. i use the plugin of Gst-nvstreammux New Alpha to do it, but not work in DS5.0.
my method is:

first, use Gst-nvstreammux plugin, pipeline is good work.

export USE_NEW_NVSTREAMMUX=no

gst-launch-1.0 -e nvstreammux name=mux batch-size=2 width=1920 height=1080 ! nvstreamdemux name=demux filesrc location=/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_720p.h264 ! h264parse ! nvv4l2decoder ! queue ! mux.sink_0 filesrc location=/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_720p.h264 ! h264parse ! nvv4l2decoder ! queue ! mux.sink_1 demux.src_0 ! “video/x-raw(memory:NVMM), format=NV12” ! queue ! nvegltransform ! nveglglessink demux.src_1 ! queue ! “video/x-raw(memory:NVMM), format=NV12” ! queue ! nvegltransform ! nveglglessink

second, use Gst-nvstreammux New Alpha plugin, is not work.
export USE_NEW_NVSTREAMMUX=yes

gst-launch-1.0 -e nvstreammux name=mux batch-size=2 ! nvstreamdemux name=demux filesrc location=/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_720p.h264 ! h264parse ! nvv4l2decoder ! queue ! mux.sink_0 filesrc location=/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_720p.h264 ! h264parse ! nvv4l2decoder ! queue ! mux.sink_1 demux.src_0 ! “video/x-raw(memory:NVMM), format=NV12” ! queue ! nvegltransform ! nveglglessink demux.src_1 ! queue ! “video/x-raw(memory:NVMM), format=NV12” ! queue ! nvegltransform ! nveglglessink

the result of execute:
max_fps_dur 8.33333e+06 min_fps_dur 2e+08
Setting pipeline to PAUSED …

Using winsys: x11

Using winsys: x11
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Pipeline is PREROLLING …
Got context from element ‘eglglessink1’: gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
NvMMLiteOpen : Block : BlockType = 261
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
NvMMLiteBlockCreate : Block : BlockType = 261
max_fps_dur 8.33333e+06 min_fps_dur 2e+08

why the plugin not work, is need additional configs ?

Hi,
Please set resolution identical to your source in nvstreammux plugin. This should avoid image scale.

The new alpha plugin is experimental and may not work in certain cases. For your case, it should work if you set the resolution identically.

our product connects many ipc cameras with different resolution. we want to keep their resolution first, then send batch data with tee to algorithm and display. so the best method is that don’t scale these video sources to same resolution that costs much time, then according to the need of algorithm or display does scale respectively that is so efficient. Can nvidia open the code of Gst-nvstreammux, or fix the problem of Gst-nvstreammux New Alpha plugin?

Hi,
New streammux is only alpha quality and a lot of bug fixes will be provided in the upcoming release of DeepStream SDK. On DS5.0.1 or 5.1, please use original nvstreammux plugin.

On Jetpack 4.5.1 + DS5.1, we run the command and it works OK:

$ gst-launch-1.0 -e nvstreammux name=mux batch-size=2 ! nvstreamdemux name=demux filesrc location=/opt/nvidia/deepstream/deepstream-5.1/samples/streams/sample_720p.h264 ! h264parse ! nvv4l2decoder ! queue ! mux.sink_0 filesrc location=/opt/nvidia/deepstream/deepstream-5.1/samples/streams/sample_720p.h264 ! h264parse ! nvv4l2decoder ! queue ! mux.sink_1 demux.src_0 ! 'video/x-raw(memory:NVMM), format=NV12' ! queue ! nvegltransform ! nveglglessink demux.src_1 ! queue ! 'video/x-raw(memory:NVMM), format=NV12' ! queue ! nvegltransform ! nveglglessink
max_fps_dur 8.33333e+06 min_fps_dur 2e+08
Setting pipeline to PAUSED ...
Using winsys: x11 
Using winsys: x11 
Opening in BLOCKING MODE
Opening in BLOCKING MODE 
Opening in BLOCKING MODE
Opening in BLOCKING MODE 
Pipeline is PREROLLING ...
Got context from element 'eglglessink1': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
NvMMLiteOpen : Block : BlockType = 261 
NvMMLiteOpen : Block : BlockType = 261 
NVMEDIA: Reading vendor.tegra.display-size : status: 6 
NVMEDIA: Reading vendor.tegra.display-size : status: 6 
NvMMLiteBlockCreate : Block : BlockType = 261 
NvMMLiteBlockCreate : Block : BlockType = 261 
max_fps_dur 8.33333e+06 min_fps_dur 2e+08
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Sending EOS downstream
Got EOS from element "pipeline0".
Execution ended after 0:00:48.034949131
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...