Multiple pad src element

Wim Taymans wim.taymans at gmail.com
Thu Jul 26 03:14:38 PDT 2012


On 07/26/2012 11:40 AM, gem-tos wrote:
> Thanks for your reply.
>
> Even if it's against the philosophy of Gstreamer, is it possible to create a
> src with 2 pads ?

You need to build a bin from two sources or a bin from 1 source and a 
demuxer. It is always possible to construct a source like this. There 
are some examples in rtspsrc (multiple sources in 1 bin) and 
uridecodebin (1 source + demuxer).

> I know that it's possible in DirectShow.
>
> The problem is that I can't create 2 src because my driver not allow to open
> several times the communication with the hardware.

You need to make an object that can be shared between your two source 
elements then or you can output a muxed format and demux it in another 
element. You can find some examples on how to do this sharing in the 
jack plugins.

Wim

>
> That's why I need a src with 2 pads.
>
> As anybody a solution to do this ?
>
> Thx
>
> BR
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Multiple-pad-src-element-tp4655662p4655703.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



More information about the gstreamer-devel mailing list