Why can't I use gst-launch to fetch data from 4 IP cameras via RTSP and display it on the same LCD s

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why can't I use gst-launch to fetch data from 4 IP cameras via RTSP and display it on the same LCD s

381 Views
Liubin2
Contributor I

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

Liubin2_0-1605860583676.png

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 

Liubin2_1-1605860605534.png

 

 

0 Kudos
1 Reply

367 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos