How to use nvstreammux

Hi,

I’m trying to create a pipe with 2 streams that batched with nvstreammux, line:

gst-launch-1.0 -e nvstreammux batch-size=2 width=3840 height=2160 name=mix ! nvvidconv ! “video/x-raw(memory:NVMM),format=(string)RGBA” ! dsexample processing-width=1280 processing-height=720 ! nvosd ! nveglglessink sync=false
filesrc location=4K_standing.mp4 ! qtdemux ! h264parse ! nvdec_h264 ! queue ! mix.
filesrc location=London.mp4 ! qtdemux ! h264parse ! nvdec_h264 ! queue ! mix.

having the following error:
WARNING: erroneous pipeline: could not link queue0 to mix

please advise.
thanks

You can write it like following:

gst-launch-1.0 filesrc location = H.264_HP_1080p_Cabac_WP_1920x1080_yuv420.264 ! h264parse ! nvcuvid_h264dec ! m.sink_0 nvstreammux name=m batching-method=1 batch-size=1 ! nvvidconv ! “video/x-raw(memory:NVMM),format=(string)RGBA” ! fakesink filesrc location = H.264_HP_1080p_Cabac_WP_1920x1080_yuv420.264 ! h264parse ! nvcuvid_h264dec ! m.sink_1

Thanks
wayne zhu