Dear all:
了解到imx6可以用overlaysink设置多视频同屏显示,如下:
在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一样类似的插件,告诉我一下参数怎么设置。
题主有解决吗?我希望在imx8上同时显示多个本地视频,我该怎么做
hi:
This is not effective on imx8, without this plug-in, you can try it!
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
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
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
thank you!