<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 02/11/16 00:40, Stuart Axon wrote:<br>
<blockquote
cite="mid:%3C1714069801.2369456.1478007619393@mail.yahoo.com%3E"
type="cite"><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]-->
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:16px">
<div id="yui_3_16_0_ym19_1_1478007472255_2679" dir="ltr"><span
id="yui_3_16_0_ym19_1_1478007472255_2688"><a
moz-do-not-send="true"
href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-libs/html/GstGLWindow.html#gst-gl-window-set-resize-callback"
id="yui_3_16_0_ym19_1_1478007472255_2687">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-libs/html/GstGLWindow.html#gst-gl-window-set-resize-callback</a></span></div>
<div id="yui_3_16_0_ym19_1_1478007472255_2678">
<div id="yui_3_16_0_ym19_1_1478007472255_2742"> </div>
<div id="yui_3_16_0_ym19_1_1478007472255_2741"><br>
</div>
<div id="yui_3_16_0_ym19_1_1478007472255_2747">Hi all,</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1478007472255_2729"> Is
gst-gl-window-set-resize-callback available in python,
particularly on raspberry pi ?</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1478007472255_2764">I
couldn't work out how to get it working.</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1478007472255_2765"><br>
</div>
<div dir="ltr">If not, is there another way to get a videos
dimensions ?</div>
</div>
</div>
</blockquote>
<br>
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).<br>
<br>
You want to get the caps on glimagesink's sink pad and retrieve the
width/height parameters from that.<br>
<br>
Cheers<br>
-Matt<br>
<br>
<blockquote
cite="mid:%3C1714069801.2369456.1478007619393@mail.yahoo.com%3E"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:16px">
<div id="yui_3_16_0_ym19_1_1478007472255_2678">
<div dir="ltr" id="yui_3_16_0_ym19_1_1478007472255_6282">filesrc</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1478007472255_6283">decodebin</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1478007472255_6284">glimagesink<br>
</div>
<div id="yui_3_16_0_ym19_1_1478007472255_2713"><br>
</div>
</div>
<div class="signature" id="yui_3_16_0_ym19_1_1478007472255_2677">S++</div>
</div>
</blockquote>
<br>
</body>
</html>