what should I do if I want to display the data streams of 4 network cameras on an LCD screen via RTSP? What are the instructions?
The usb camera can be operated like the following, but how to operate the network camera?
gst-launch-1.0 -v imxcompositor_g2d name=comp \ sink_0::xpos=0 sink_0::ypos=0 sink_0::width=640 sink_0::height=480 \ sink_1::xpos=0 sink_1::ypos=480 sink_1::width=640 sink_1::height=480 ! \ video/x-raw,format=RGB16 ! autovideosink \ v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! comp.sink_0 \ v4l2src device=/dev/video1 ! video/x-raw,width=640,height=480 ! comp.sink_1
I found the following way to achieve it, but it can only display videos from three IP Camera at most,
The instructions for displaying three IP camera videos normally are as follows(it ok):
gst-launch-1.0 imxcompositor_g2d name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::width=512 sink_0::height=300 sink_1::xpos=0 sink_1::ypos=300 sink_1::width=512 sink_1::height=300 sink_2::xpos=512 sink_2::ypos=0 sink_2::width=512 sink_2::height=300 ! video/x-raw,format=RGB16 ! waylandsink rtspsrc location=rtsp://admin:cx123456@192.168.60.64 ! rtph264depay ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=512, height=300 ! comp.sink_0 rtspsrc location=rtsp://admin:cx123456@192.168.60.64 ! rtph264depay ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=512, height=300 ! comp.sink_1 rtspsrc location=rtsp://admin:cx123456@192.168.60.64 ! rtph264depay ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=512, height=300 ! comp.sink_2
But when I use the command to display 4 IP camera videos, an error occurs, as shown below. What is the reason?
gst-launch-1.0 imxcompositor_g2d name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::width=512 sink_0::height=300 sink_1::xpos=0 sink_1::ypos=300 sink_1::width=512 sink_1::height=300 sink_2::xpos=512 sink_2::ypos=0 sink_2::width=512 sink_2::height=300 sink_3::xpos=512 sink_3::ypos=300 sink_3::width=512 sink_3::height=300 ! video/x-raw,format=RGB16 ! waylandsink rtspsrc location=rtsp://admin:cx123456@192.168.60.64 ! rtph264depay ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=512, height=300 ! comp.sink_0 rtspsrc location=rtsp://admin:cx123456@192.168.60.64 ! rtph264depay ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=512, height=300 ! comp.sink_1 rtspsrc location=rtsp://admin:cx123456@192.168.60.64 ! rtph264depay ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=512, height=300 ! comp.sink_2 rtspsrc location=rtsp://admin:cx123456@192.168.60.64 ! rtph264depay ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=512, height=300 ! comp.sink_3
still 8mm board, right? what video resolution do you use? how about try the lower resolution video?
hi:
They are all 8mm boards. The current phenomenon of playing 4 videos sometimes works normally, sometimes it doesn’t work. I tried a lower resolution and it doesn’t work. Will it be related to the IP camera?
I'm not sure if the network has issue or not? 8mm boards can support 4 rtsp video I think