tee in DS 4.0 on Xavier

Hi,

I used tee (element) in DS 3.0 at that time and it was no problem
now, I tried to use tee again in DS 4.0 but it was not working properly

I don’t understand why it is not working so I did a simple test about tee below

// only transcoding,  working well in DS 4.0 
$ gst-launch-1.0 filesrc location=../../../../samples/streams/sample_720p.mp4 ! <b>decodebin ! omxh264enc !  h264parse ! qtmux ! filesink location=test.h264 

// only simple play , working well in DS 4.0 
$ gst-launch-1.0 filesrc location=../../../../samples/streams/sample_720p.mp4 ! decodebin ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=720 ! nvegltransform ! nveglglessink

// simple play by using tee, working well in DS 4.0 
$ gst-launch-1.0 filesrc location=../../../../samples/streams/sample_720p.mp4 ! decodebin ! tee name=t ! queue ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=720 ! nvegltransform ! nveglglessink 

// 2 channel,  fakesink and transcoding  , working well in DS 4.0
$ gst-launch-1.0 filesrc location=../../../../samples/streams/sample_720p.mp4 ! decodebin ! tee name=t ! queue ! fakesink <b>t. ! queue ! omxh264enc !  h264parse ! qtmux  ! filesink location=test.mp4 

// 2 Channel , simple play and transcoding, <b>not working</b> in DS 4.0 
$ gst-launch-1.0 filesrc location=../../../../samples/streams/sample_720p.mp4 ! decodebin ! tee name=t ! queue ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=720 ! nvegltransform ! nveglglessink t. ! queue ! omxh264enc !  h264parse ! qtmux  ! filesink location=test.mp4

Hi,
Please try

$ gst-launch-1.0 filesrc location= videoplayback.mp4 ! decodebin ! tee name=t ! queue ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=720 ! nvegltransform ! nveglglessink t. ! queue ! nvvideoconvert ! nvv4l2h264enc !  h264parse ! qtmux  ! filesink location=test.mp4

On DS4.0, please use nvv4l2decoder, nvv4l2h264enc, nvv4l2h265enc plugins.

Hi,
Thanks for your reply
I tried your command several times and It was working well and making a test.mp4 file, it’s good
but sometimes I received same error below
Did you receive the same error?

$ gst-launch-1.0 filesrc location=../../../../samples/streams/sample_720p.mp4 ! decodebin ! tee name=t ! queue ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=720 ! nvegltransform ! nveglglessink t. ! queue ! nvvideoconvert ! nvv4l2h264enc !  h264parse ! qtmux  ! filesink location=test.mp4

........
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Caught SIGSEGV
#0  0x0000007f8088931c in __GI___pthread_timedjoin_ex (threadid=547431617008, thread_return=0x0, abstime=0x0, block=<optimized out>)
#1  0x0000007f809449b0 in  () at /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0
#2  0x0000000000000011 in  ()
Spinning.  Please run 'gdb gst-launch-1.0 26104' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

Hi,
Please try

$ gst-launch-1.0 filesrc location= /opt/nvidia/deepstream/deepstream-4.0/samples/streams/sample_720p.mp4 ! decodebin ! tee name=t ! queue ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=720 ! nvvideoconvert ! nveglglessink t. ! queue ! nvvideoconvert ! nvv4l2h264enc !  h264parse ! qtmux  ! filesink location=test.mp4