GLimagesink in a widget

munezbn.dev munezbn.dev at gmail.com
Sun Sep 25 04:35:22 UTC 2016


Matthew Waters wrote
> On 23/09/16 14:50, munezbn.dev wrote:
>> HI ..
>>
>> I have Similar requirement with GTK. @OP any luck with above suggestion ?
>> Basically i want to embedd glimagesink into GTKDrawable so that i can use
>> full-screen video and also key events for play/pause/quit etc. My code
>> works
>> fine on host machine for xvimagesink. But same doesnt work on RSPI3.
> 
> Unfortunately, Gtk+ on the Raspberry Pi uses X11 (or wayland) where
> glimagesink has to use dispmanx for access to OpenGL which are not
> compatible.  You can use the gtkglsink element in GStreamer 1.8 which
> uses Gtk+'s OpenGL widget in Gtk+ 3.20 to draw instead (at the cost of
> software OpenGL rendering), alternatively, gtkglarea in Gtk+ 3.22 can
> use GLES although I'm not sure if that's hooked up for the RPi's GLES
> stack.
> 
> Cheers
> -Matt

Thanks for the reply Matt. Unfortunately I cannot enable GTK+ 3 version in
Buildroot. It requires OPENGL/EGL based on mesa3d. But on raspberry pi we
use native rpi-userland instead of MESA3D. There is separate thread on this
topic.

Ok, Currently glimagesink displays the video in the center of the screen
which is not stretched/scaled ( Not full screen) .. If i dont use GTK
widget, and if i want to render video in full-screen using glimagesink , how
should I proceed.  Can i use gl scaling elements ?

Thanks & Regards
Munez





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/GLimagesink-in-a-widget-tp4673122p4679759.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list