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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

238 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
6 Replies

226 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

224 Views
Liubin2
Contributor I

hi:

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

0 Kudos

218 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

216 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

197 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

194 Views
Liubin2
Contributor I

thank you!

0 Kudos