GNOME Bugzilla – Bug 753487
video-overlay: Lack of get render rectangle in videooverlay interface
Last modified: 2018-05-01 07:08:15 UTC
The videooverlay interface support to chenge render rectangle of video display, but there is no API to get the render rectangle data.
Is it just being requested for symmetry, or do you have a use case for it ? Would it possibly to provide such a use case ? (justifying the addition of new API).
(In reply to Nicolas Dufresne (stormer) from comment #1) > Is it just being requested for symmetry, or do you have a use case for it ? > Would it possibly to provide such a use case ? (justifying the addition of > new API). I am now working on a project to create a simple API to help user write application based on "playbin". Since there are many kinds of video sink need to support, I use videooverlay interface to simply realize video display resize. I have to check if the resize is already successfully and want to get the display area data from Gstreamer back, but I don't find the API. I think it is necessary to add this kind API in videooverlay interface.
Not sure this API would really do what you want. Also, note that there's also another effort for a simple API for playbin here: https://github.com/sdroege/gst-player/
(In reply to Tim-Philipp Müller from comment #3) > Not sure this API would really do what you want. > > Also, note that there's also another effort for a simple API for playbin > here: > > https://github.com/sdroege/gst-player/ I just want to get the rectangle data back from gstreamer. My solution now is to read the display area property of video sink, but the property name is not same between all kinds of video sink. Now there is a common way to set render rectangle in videooverlay interface, but I think there should also be a common way to get the render rectangle.
(In reply to Tim-Philipp Müller from comment #3) > Not sure this API would really do what you want. > > Also, note that there's also another effort for a simple API for playbin > here: > > https://github.com/sdroege/gst-player/ Is there any update for my issue? I think this is necessary to add this API. If not, could you please give me the reason.
This is a support question. There are ways to do it differently with current stable GStreamer. Please ask your question on the mailing list.