Hi,
I have been using this pipeline to display an image stream from the onboard camera with no trouble:
gst-launch-1.0 nvcamerasrc fpsRange=“30.0 30.0” ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)30/1’ ! nvtee ! nvvidconv flip-method=2 ! ‘video/x-raw(memory:NVMM), format=(string)I420’ ! nvoverlaysink -e
and this stream for saving the stream to a file:
gst-launch-1.0 nvcamerasrc fpsRange=“30.0 30.0” ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)30/1’ ! nvtee ! nvvidconv flip-method=2 ! ‘video/x-raw(memory:NVMM), format=(string)I420’ ! omxh264enc ! ‘video/x-h264,
stream-format=(string)byte-stream’ ! h264parse ! qtmux ! filesink location=test.mp4 -e
Both work as expected. But when I try to combine them I get an empty file and the stream is stuck. I have tried several variations of this pipeline with no success. This is the pipeline I tried to use:
gst-launch-1.0 nvcamerasrc fpsRange=“30.0 30.0” ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)30/1’ ! nvtee name=‘t’ ! queue ! nvvidconv flip-method=2 ! ‘video/x-raw(memory:NVMM), format=(string)I420’ ! nvoverlaysink t. ! queue ! omxh264enc ! ‘video/x-h264,
stream-format=(string)byte-stream’ ! h264parse ! qtmux ! filesink location=test.mp4 -e
Any ideas why this does not work. Thanks in advance.