GLimagesink in a widget

Matthew Waters ystreet00 at gmail.com
Sun Sep 25 14:21:48 UTC 2016


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

-------------- 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/20160926/5b3565a4/attachment.sig>


More information about the gstreamer-devel mailing list