GLimagesink in a widget

munezbn.dev munezbn.dev at gmail.com
Tue Sep 27 05:36:53 UTC 2016


Matthew Waters wrote
> On 25/09/16 14:35, munezbn.dev wrote:
>> 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.
> 
> FWIW, Mesa does contain a VC4 OpenGL driver for the RPi that you may be
> much better off using.
> 
>> 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 ?
> 
> That is one option that would give you an output surface that's
> fullscreen.
> 
> Cheers
> -Matt
> 
>> Thanks & Regards
>> Munez
> 
> 
> _______________________________________________
> gstreamer-devel mailing list

> gstreamer-devel at .freedesktop

> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> signature.asc (495 bytes)
> <http://gstreamer-devel.966125.n4.nabble.com/attachment/4679762/0/signature.asc>

Thanks for pointing it out. I will try that and get back to you.



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


More information about the gstreamer-devel mailing list