[gst-devel] How can I make two links between two elements?

wl2776 wl2776 at gmail.com
Wed Jul 21 09:40:00 CEST 2010



Edward Hervey wrote:
> 
>   You can't link multiple pads in one go like that you need to do
> something like:
> 
>   ... ! sourceelement name=d  sinkelement name=m ! ...
> 
>   d.first_pad ! m.first_pad d.second_pad ! m.second_pad
> 

filesrc ! typefind ! mpegpsdemux name=demux multiqueue name=mq  !
demux.video_e0 ! mq.sink0 ! mpegvideoparse ! mpeg2dec ! queue !
ffmpegcolorspace ! autovideosink demux.audio_c0 ! mq.sink1 ! mp3parse !
autoaudiosink

This produces 3 parallel chains:
1. filesrc -> typefind -> demux -> multiqueue
and demux.audio_e0 src pad is connected to the mq.sink0 sink pad. The
multiqueue mq doesn't have sink1 pad, and its src0 pad is unconnected.

2. mpegvideoparse -> mpeg2dec -> queue-> ffmpegcsp -> autovideosink
mpegvideoparse.sink pad is unconnected

3. mpegaudioparse -> autoaudiosink
mpegaudioparse.sink is also unconnected

I also requested to create mp3parse element, but it is not created.

Can the problem be in that multiqueue's sink pads are on request?
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-can-I-make-two-links-between-two-elements-tp2295148p2296716.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list