imx8mm gstreamer issue:I want to set 4 videos on the same screen

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

imx8mm gstreamer issue:I want to set 4 videos on the same screen

2,444 Views
Liubin2
Contributor I

Dear all:

          了解到imx6可以用overlaysink设置多视频同屏显示,如下:

         Liubin2_0-1605494089208.png

在imx8上如何操作??
目前了解到gstreamer 的waylandsink插件可以设置播放窗体大小(window-height、window-width),但是不能控制视频播放窗体的位置,各位是怎么解决的? 我所用参数命令如下:
gst-launch-1.0 filesrc location=H265_1080.mp4 typefind=true ! video/quicktime ! aiurdemux ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=1024, height=600 ! waylandsink  window-height=384 window-width=512 filesrc location=H265_1080.mp4 typefind=true ! video/quicktime ! aiurdemux ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=1024, height=600 ! waylandsink  window-height=384 window-width=512 filesrc location=H265_1080.mp4 typefind=true ! video/quicktime ! aiurdemux ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=1024, height=600 ! waylandsink  window-height=384 window-width=512 filesrc location=H265_1080.mp4 typefind=true ! video/quicktime ! aiurdemux ! queue max-size-time=0 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=1024, height=600 ! waylandsink  window-height=384 window-width=512

或者是否还有其他像waylandsink一样类似的插件,告诉我一下参数怎么设置。

 

Tags (1)
0 Kudos
Reply
7 Replies

241 Views
EnochXu
Contributor II

题主有解决吗?我希望在imx8上同时显示多个本地视频,我该怎么做

0 Kudos
Reply

2,431 Views
joanxie
NXP TechSupport
NXP TechSupport

you can refer to the chapter 7.3.1.6.3 Multiple videos overlay of enclosed file

0 Kudos
Reply

2,429 Views
Liubin2
Contributor I

hi:

    This is not effective on imx8, without this plug-in, you can try it!

0 Kudos
Reply

2,424 Views
joanxie
NXP TechSupport
NXP TechSupport

so your commands can display Multiple videos overlay, but you couldn't change the position, right?

I remember I try this command to test position changing, maybe you can try it

# gst-launch-1.0 imxcompositor_g2d name=comp sink_0::xpos=500 sink_0::ypos=500 ! waylandsink videotestsrc ! video/x-raw, width=640, height=480 ! comp.sink_0

0 Kudos
Reply

2,422 Views
Liubin2
Contributor I

hi:

         thanks,This method can change the position of the window, and can set 4 videos to be displayed on the same LCD screen。

        But 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 Kudos
Reply

2,403 Views
joanxie
NXP TechSupport
NXP TechSupport

this is another topic, try to create a new thread for it, becasue I never tested 4 network camera, maybe the others could help you

0 Kudos
Reply

2,400 Views
Liubin2
Contributor I

thank you!

0 Kudos
Reply