how to display the data streams of 4 network cameras on an LCD screen via RTSP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to display the data streams of 4 network cameras on an LCD screen via RTSP

761件の閲覧回数
Liubin2
Contributor I

        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

0 件の賞賛
4 返答(返信)

755件の閲覧回数
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_2-1605860255124.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_0-1605860145393.png

 

 

0 件の賞賛

730件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

still 8mm board, right? what video resolution do you use? how about try the lower resolution video?

0 件の賞賛

725件の閲覧回数
Liubin2
Contributor I

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?

0 件の賞賛

717件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

I'm not sure if the network has issue or not? 8mm boards can support 4 rtsp video I think

0 件の賞賛