Hi,
My goal is to run 2 videos in non-windowed mode. I managed to get this working as below:
gst-launch -e -v videomixer name=mix sink_0::xpos=1000 sink_1::xpos=0 ! queue ! nvvidconv ! video/x-nv-yuv, format=\(fourcc\)NV12 ! \
nv_omx_hdmi_videosink overlay-x=100 overlay-y=100 overlay-w=1800 overlay-h=450 \
filesrc location=test2.mp4 ! qtdemux name=demux1 demux1.video_00 ! queue ! nv_omx_h264dec ! "video/x-nv-yuv" ! queue ! nvvidconv ! queue ! mix.sink_0 \
filesrc location=test3.mp4 ! qtdemux name=demux2 demux2.video_00 ! queue ! nv_omx_h264dec ! "video/x-nv-yuv" ! queue ! nvvidconv ! queue ! mix.sink_1
The problem with this approach is that it takes higher CPU and frame loss happens if other tasks are done (for example, opening a chromium browser). I believe this is because of using the videomixer and the conversions done in between.
So, I started to use the omx videomixer with 1 video file before bringing in 2 videos as below, hoping to reduce CPU usage/conversions:
gst-launch -e -v filesrc location=test2.mp4 ! qtdemux name=demux1 demux1.video_00 ! nv_omx_h264dec ! video/x-nv-yuv ! \
nvvidconv ! video/x-nv-yuv, format=\(fourcc\)I420 ! nv_omx_videomixer name=mix ! video/x-nv-yuv, format=\(fourcc\)I420 ! \
nv_omx_hdmi_videosink overlay-x=100 overlay-y=100 overlay-w=600 overlay-h=250
and, I get the below error:
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingSetting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...
I am a beginner, so, please take it easy. Any help to guid me to move forward would be greatly appreciated. Thanks