[gst-devel] Re : Creating a simple 1-N plugin

Albert Costa costa_albert at yahoo.fr
Fri Jun 13 18:16:27 CEST 2008

Thanks Tim,
I found the interleave plugin very useful to adapt to my needs,

----- Message d'origine ----
De : Tim Müller <t.i.m at zen.co.uk>
À : gstreamer-devel at lists.sourceforge.net
Envoyé le : Vendredi, 13 Juin 2008, 16h49mn 00s
Objet : Re: [gst-devel] Creating a simple 1-N plugin

On Fri, 2008-06-13 at 14:27 +0000, Albert Costa wrote:


> I want to create a plugin that has 1 sink pad and N (fixed, no request
>  nor sometimes, so let's say 2) source pads.. The sink gets some video,
>  and source pads 1 & 2 would send both home-generated data buffers. Is
>  there any simple example on how to create such a plugin. Can it work
>  on the basic '1-1' model, but with creating 2 src pads, pushing my
>  buffers over the pads in the chain() method? Or does it have to use a
>  loop() ? 

You can do that from within a chain function. You can push one buffer on
one pad, and then push a buffer on the other pad (or the same pad again)
next time. Or push one buffer on both source pads, or save the buffer
for later processing and not push anything at all - it's all allowed.

Most demuxers work like this. Deinterleave in gst-plugins-bad is another
element which pushes buffers on multiple source pads from a chain


Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge..net

Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080613/f4b7888b/attachment.htm>

More information about the gstreamer-devel mailing list