How to use GstVideoMixerPad?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use GstVideoMixerPad?

Thomas Loewe
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 python but i don't understand it...

Thanks,
Thomas
Reply | Threaded
Open this post in threaded view
|

Re: How to use GstVideoMixerPad?

Tim-Philipp Müller-2
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



------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to use GstVideoMixerPad?

Thomas Loewe
> In C/C++ you'll have to use g_object_set() to set those.
Ah ok, didn't realized that g_object_set() can be used on a pad - used it only for element properties so far.

Works great now, Thanks!