glimagesink position

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

glimagesink position

1,942 Views
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 Kudos
2 Replies

1,904 Views
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 Kudos

1,897 Views
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 Kudos