Hello there,
I’ve been trying to use gstreamer to setup a RTSP server, so far I did accomplish what i need, which is 2 video feed side by side plus one audio source, but one of the video feed I’m using is a videotestsrc.
When I try to add a second camera I got some errors.
Code that works so far. (File test-multicast from gst-rtsp-server)
Using only one camera
nvcompositor name=comp sink_1::xpos=1920 ! nvvidconv ! video/x-raw(memory:NVMM) ! omxh264enc insert-sps-pps=true bitrate=20000000 ! h264parse ! rtph264pay name=pay0 pt=96 alsasrc ! audioconvert ! rtpL16pay name=pay1 videotestsrc is-live=true ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM) ! comp. nvarguscamerasrc ! video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM) ! comp.
Code where I change the videotestsrc for my second camera.
nvcompositor name=comp sink_1::xpos=1920 ! nvvidconv ! video/x-raw(memory:NVMM) ! omxh264enc insert-sps-pps=true bitrate=20000000 ! h264parse ! rtph264pay name=pay0 pt=96 alsasrc ! audioconvert ! rtpL16pay name=pay1 nvarguscamerasrc sensor-id=1 ! video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM) ! comp. nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM) ! comp.
The first result is consumed correctly by VLC.
The second one shows this error:
0:00:06.709695301 29232 0x7f980250a0 ERROR nvcompositor gstnvcompositor.c:1321:do_nvcomposite: NvBufferComposite failed
0:00:06.709763635 29232 0x7f980250a0 ERROR nvcompositor gstnvcompositor.c:1378:gst_nvcompositor_aggregate_frames: Failed to composit frames
Thanks in advance.
Raul.