gst_video_overlay_set_window_handle() example for raspberry pi (or appsink)?

munez bn munezbn.dev at gmail.com
Mon Oct 24 07:35:25 UTC 2016


The Native scaling function using set_render_rectangle didnt work for me.
It was not playing smoothly for some reason. So this is what I did

1] Create a dismpanx window based on video resolution. ( This part may be
missing in example code. I had hard-coded to  my test video resolution)
2] Set this window using set_window_hanlde ( refer to example code in the
bug)
3] Once this happens you have complete control over the window, you can
scale it, move it using dispmanx API
 vc_dispmanx_element_change_attributes()

The attached example is not optimized but enough for you to understand how
to scale and move(change dest rect  x, y value)..

Thanks & Regards
Munez


On Mon, Oct 24, 2016 at 12:44 PM, Sebastian Dröge <sebastian at centricular.com
> wrote:

> On Thu, 2016-10-20 at 10:56 +0000, Stuart Axon wrote:
> > Hi,
> >    I'm building a player on raspberry pi, but want to be able to move
> > / scale the window.
> > Is there an example somewhere to do this ?
> >
> > I saw the patch here
> > https://bugzilla.gnome.org/show_bug.cgi?id=772608
> >
> >
> > But I'm pretty new to coding opengl es, so not sure how to create the
> > window to pass into this API.
> >
> > My app is in python, but this part doesn't necessarily need do be in
> > python.
>
> That bug also contains a test application as an attachment. Please take
> a look at that.
>
> It's nothing GL specific in this case, but RPi specific. You pass a
> dispmanx element there.
>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161024/7c6f567c/attachment.html>


More information about the gstreamer-devel mailing list