Display window to use with EGL in gstglimagesink

pankaj pipada ppipada at gmail.com
Thu Jun 26 02:22:03 PDT 2014

I would like to use a X11 window.
Problem is I cannot get EGL invoked when using GST_GL_PLATFORM=egl
I am verifying this by checking if "EGLImage" is provided as
allocater->mem_type in the proposed BufferPool by glimagesink.

The sink tries to see if "EGL_KHR_image_base" feature is present in the
context created and if it is present, then only proposes EGLImage as a
mem_type available.
I am able to do this with wayland but not with X11.

> > Hello,
> >
> > I am trying to use a GstBufferPool proposed by glimagesink in a custom
> > decoder plugin with EGLImage as memory type.
> > Could you please suggest the windowing system that is to be used when
> > creating a EGLContext?
> > I could not get x11 window to initialize with EGL.
> > If I set environment variables as: GST_GL_PLATFORM="egl"
> > and GST_GL_WINDOW="x11"
> > glimagesink tries to create a x11 display and window and skips EGL
> > completely.
> >
> > With  GST_GL_PLATFORM="egl" and GST_GL_WINDOW="" window creation fails
> > and gstglwindow.c says "creating dummy window".
> > (plugins-bad/gst-libs/gst/gl/gstglwindow.c#143)
> >
> > Is there a way to get around this?
> > I am using gstreamer-bad-plugins 1.3.2 with Ubuntu 14.04.
> What kind of window do you want to create?
> If you choose
> you will get an offscreen EGL surface as window, and if you want it to
> be rendered into something else you'll have to provide a window to the
> sink.
> If you choose
> you will get a X11 window and all the windowing is done via X11, which
> also means that an X11 display is used. But as GL platform EGL will be
> used.
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140626/9a37bbc8/attachment.html>

More information about the gstreamer-devel mailing list