My pipeline is as bellow,it runs into deadlock.
gst-launch-1.0
v4l2src device=/dev/video0 !
“video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1” !
nvvidconv ! “video/x-raw(memory:NVMM),format=NV12” !
tee name=t0
t0. !
queue ! nvvidconv ! “video/x-raw(memory:NVMM),format=NV12” !
queue ! omxh264enc bitrate=10000000 iframeinterval=30 control-rate=2 profile=1 !
splitmuxsink muxer=mp4mux location=video0-%d.mp4
t0. !
queue ! nvvidconv ! “video/x-raw(memory:NVMM),format=NV12” !
nvoverlaysink sync=false \
You may use option async-handling for splitmuxsink.
You may also avoid nvvidconv doing no conversion nor memory space copy.
The following works with a ZED camera on my TX2:
gst-launch-1.0 -ev v4l2src device=/dev/video1 ! 'video/x-raw,format=YUY2' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! tee name=t ! queue ! omxh264enc ! splitmuxsink muxer=mp4mux sink=filesink location=video0-%d.mp4 <b>async-handling=true</b> t. ! queue ! nvoverlaysink