Interleave question

Wouter Klouwen dublet at acm.org
Wed May 14 09:36:44 PDT 2014


Hello all,

I'd like to use gstreamer to play some videos while directing the audio 
output to specific channels. My computer has two sets of stereo outputs 
(LR & rear LR) and I'd like to be able to direct which of these receives 
the output of playback.

As far as I understand it, the interleave & deinterleave plugins should 
be able to do what I want, so to get my head around how this could work, 
I tried the example in the documentation*:
$ gst-launch filesrc location=file.mp3 ! decodebin ! audioconvert ! 
"audio/x-raw,channels=2" ! deinterleave name=d  interleave name=i ! 
audioconvert ! wavenc ! filesink location=test.wav    d.src_0 ! queue ! 
audioconvert ! i.sink_1    d.src_1 ! queue ! audioconvert ! i.sink_0

But when I execute this with an mp3 file, I get this output:

0:00:00.076005000  5324   00528D00 ERROR           GST_PIPELINE 
grammar.tab.c:71
3:gst_parse_perform_link: could not link audioconvert3 to i
0:00:00.081005000  5324   00528D00 ERROR           GST_PIPELINE 
grammar.tab.c:71
3:gst_parse_perform_link: could not link audioconvert0 to d
0:00:00.086005000  5324   00528D00 ERROR           GST_PIPELINE 
grammar.tab.c:71
3:gst_parse_perform_link: could not link audioconvert2 to i
WARNING: erroneous pipeline: could not link audioconvert3 to i

This is using gstreamer 0.10.

Could someone enlighten me as to why this doesn't work?

*: 
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-interleave.html

Thanks in advance,
      Wouter


More information about the gstreamer-devel mailing list