Compiling gst-plugins-gl (was re: Offscreen rendering and SDL)

Eamon Caddigan eamon.caddigan at gmail.com
Thu Aug 23 13:45:56 PDT 2012


>From Andrey Nechypurenko andreynech at googlemail.com :
> > application (actually, it's a pygame application, but I'm writing a
> > module in C, so I can use the standard API for this). Using code
> > snippets I found online, I've managed to create a window using X11 and
> > can send the video there, but this approach makes it impossible to
> > draw graphics over the video.
>
> One possible way would be to create the OpenGL texture with decoded
> frame. Than you can do whatever you want to compose the video with
> your own graphics. For example, you can map the texture on the plane
> in background and make your own drawing in front of this plane (in
> foreground).
>
> There are at least two ways to get decoded video frame as a texture.
> The first one one is to use elements from gst-plugins-gl [1]. You can
> take a look at corresponding examples [2] (there is also SDL example
> over there). The second one is to use fakesink element with it's
> hand-off mechanism to get raw decoded frame.

Thanks for the pointers!

Now I have a new question: I'm trying to compile gst-plugins-gl, and I get
errors stemming from the lack of a 'config.h'. Looks like it's
necessary to have one,
gstopengl.c is expecting a lot of preprocessor definitions. I'm
building on linux.

Thanks,
Eamon


More information about the gstreamer-devel mailing list