gst-gl-window-set-resize-callback on glimagesink on raspberry pi + python ?

Matthew Waters ystreet00 at gmail.com
Wed Nov 2 01:00:35 UTC 2016


On 02/11/16 00:40, Stuart Axon wrote:
> https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-libs/html/GstGLWindow.html#gst-gl-window-set-resize-callback
>  
>
> Hi all,
>    Is gst-gl-window-set-resize-callback available in python,
> particularly on raspberry pi ?
> I couldn't work out how to get it working.
>
> If not, is there another way to get a videos dimensions ?

While it is possible to use this (involving a *lot* of steps), the
application is not really meant to know about GstGLWindow and that's not
how to get the dimensions of the video, only of the backing window
(which may be a different size).

You want to get the caps on glimagesink's sink pad and retrieve the
width/height parameters from that.

Cheers
-Matt

> filesrc
> decodebin
> glimagesink
>
> S++

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161102/079dee72/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 484 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161102/079dee72/attachment.sig>


More information about the gstreamer-devel mailing list