Mapping unordered audio channels

John P Poet jppoet at gmail.com
Wed Jan 4 23:43:01 UTC 2017


Hi,

I noticed that Sebastian committed code to allow >2 channel input with
decklinkaudiosrc.  I gave it a quick try, but the following pipeline does
not map the channels correctly (at least for my setup):

DEVICE=0

gst-launch-1.0 \
    decklinkvideosrc device-number=${DEVICE} mode=0 ! queue !
autovideoconvert ! deinterlace mode=2 ! queue ! avenc_mpeg2video
bitrate=800000 ! mpegvideoparse ! mpegtsmux name=mux ! filesink
location=video.ts   decklinkaudiosrc device-number=${DEVICE} channels=8 !
audioconvert ! deinterleave name=d  interleave name=i ! audioconvert !
"audio/x-raw,channels=6" ! wavenc ! wavparse ! audioconvert ! avenc_ac3
bitrate=640000 ! queue ! ac3parse ! mux.    d.src_0 ! queue ! audioconvert
! i.sink_0    d.src_1 ! queue ! audioconvert ! i.sink_1    d.src_2 ! queue
! audioconvert ! i.sink_2    d.src_3 ! queue ! audioconvert ! i.sink_3
d.src_4 ! queue ! audioconvert ! i.sink_4    d.src_5 ! queue ! audioconvert
! i.sink_5

I tried changing it such that d.src_1 is mapped to i.sink_2,  (e.g.
"d.src_1 ! queue ! audioconvert ! i.sink_2    d.src_2 ! queue !
audioconvert ! i.sink_1"), but I get:

    WARNING: erroneous pipeline: could not link audioconvert5 to i

So, what is the correct way to remap the audio channels?

Thank you,

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170104/54113f9c/attachment.html>


More information about the gstreamer-devel mailing list