Hello all,
I have an issue with the following script:
gst-launch-1.0 nvcompositor name=comp operator=source
sink_0::alpha=1 sink_0::width=1920 sink_0::height=840
sink_1::alpha=1 sink_1::xpos=0 sink_1::ypos=728 sink_1::width=480 sink_1::height=240
sink_2::alpha=1 sink_2::xpos=480 sink_2::ypos=728 sink_2::width=480 sink_2::height=240
sink_3::alpha=1 sink_3::xpos=960 sink_3::ypos=728 sink_3::width=480 sink_3::height=240
sink_4::alpha=1 sink_4::xpos=1440 sink_4::ypos=728 sink_4::width=480 sink_4::height=240
! nvvidconv ! omxh264enc bitrate=3000000 control-rate=4 qos=true !
rtph264pay config-interval=1 pt=96 ! udpsink host=192.168.0.123 port=5001 async=false sync=false
rtspsrc location=“rtsp://@192.168.0.21/onvif-media/media.amp?camera=1" latency=10 !
rtph264depay ! nvv4l2decoder enable-max-performance=1 ! queue2 ! comp.sink_0
rtspsrc location="rtsp://@192.168.0.21/onvif-media/media.amp?camera=1” latency=10 !
rtph264depay ! nvv4l2decoder enable-max-performance=1 ! queue2 ! comp.sink_1
rtspsrc location=“rtsp://@192.168.0.21/onvif-media/media.amp?camera=2" latency=10 !
rtph264depay ! nvv4l2decoder enable-max-performance=1 ! queue2 ! comp.sink_2
rtspsrc location="rtsp://@192.168.0.21/onvif-media/media.amp?camera=3” latency=10 !
rtph264depay ! nvv4l2decoder enable-max-performance=1 ! queue2 ! comp.sink_3
rtspsrc location=“rtsp://****@192.168.0.21/onvif-media/media.amp?camera=4” latency=10 !
rtph264depay ! nvv4l2decoder enable-max-performance=1 ! queue2 ! comp.sink_4
Basically, it can work sometimes (1 on 10 times), but most of time I just got a freezed picture with only one or two sub-stream displayed. This is the NVIDIA version but I have exactly the same issue with standard avdec_h264 and v4l2h264enc plugins.
I suspect a sync issue, but not sure. If I try this script with 5 videotestsrc, it works perfectly. Same thing with a direct display of the compositor result (no encoding / streaming), with nvoverlaysink. It works also all the time.
I’m lost right now, no idea of what I can do / try to fix it.
If anyone has any idea, it would be great !
Thanks a lot,
Mael