glimagesink position

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

glimagesink position

2,053 次查看
ch_chang
Contributor I

Each time of video playback with glimagesink, the display position on screen changed.

So I add render-rectangle argument, however the x, y variable didn't take effect. the display position still change despite x, y variable.

 

Environment:

Yocto 5.10.52, xwayland, full-image

i.mx8mm, i.mx8mp <- both has the same problem

Command:

gst-launch-1.0 filesrc location=MY_VIDEO.mp4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! vpudec ! queue ! glimagesink render-rectangle='< x, y, width, height>'

 

 

0 项奖励
回复
2 回复数

2,015 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @ch_chang 

 

The  “render-rectangle” property realize the interface of gst_video_overlay_set_render_rectangle.You can see it's description,it is used to set video overlay size in display window, the position you want to set is window position of glimagesink.But glimagesink don't have such interface.

https://gstreamer.freedesktop.org/documentation/video/gstvideooverlay.html?gi-language=c#gst_video_o...

 

Regards

Zhiming

0 项奖励
回复

2,008 次查看
ch_chang
Contributor I

Hi nxf65025

I have a 16:9 display, and I need a video playback at screen right side with 90' degree rotation.

In this case, could you help suggest how to implement this? thank you.

PS: weston shell could be "fullscreen shell" or "desktop shell with 'panel-position=top' property" 

ch_chang_0-1649225358164.png

 

0 项奖励
回复