[gst-devel] How to use GstVideoMixerPad?

Tim-Philipp Müller t.i.m at zen.co.uk
Mon Jan 24 18:19:42 CET 2011


On Mon, 2011-01-24 at 08:36 -0800, Thomas Loewe wrote:

> I would like to use the videomixer element to add picture in picture support
> into my app.
> 
> According to the docs it should be configured via GstVideoMixerPad. Is there
> an example in c/c++ available?
> 
> I found only something in 
> http://www.oz9aec.net/index.php/gstreamer/354-gstreamer-compositing-using-the-gstvideomixerpad-properties
> python  but i don't understand it...

What exactly do you not understand / is unclear?

Videomixer pads are sub-classes of GstPad, so they provide additional
functionality/API. This extra functionality is exposed via GObject
properties. In C/C++ you'll have to use g_object_set() to set those. The
GstVideoMixerPad object structure is not available outside the plugin,
so you'll have to treat it as a normal GstPad with additional
properties.

Cheers
 -Tim






More information about the gstreamer-devel mailing list