<div dir="ltr">While working on adding multi-channel audio support to gstdecklinkaudiosrc, I tried to come up with a pipeline which throws away all but the first six channels, and encodes them into AC3.  The following pipeline works:<br><div><br>```<br><span style="font-family:monospace">gst-launch-1.0 decklinkvideosrc device-number=${DEVICE} mode=0 ! fakesink \<br>   decklinkaudiosrc device-number=${DEVICE} audio-channels=8 ! audioconvert ! \<br>   deinterleave name=d  interleave name=i ! audioconvert ! "audio/x-raw,channels=6" ! \<br>   wavenc ! wavparse ! audioconvert ! avenc_ac3 bitrate=640000 ! queue ! ac3parse ! \<br>   filesink location=dest.wav   \<br>   d.src_0 ! queue ! audioconvert ! i.sink_0   \<br>   d.src_1 ! queue ! audioconvert ! i.sink_1   \<br>   d.src_2 ! queue ! audioconvert ! i.sink_2   \<br>   d.src_3 ! queue ! audioconvert ! i.sink_3   \<br>   d.src_4 ! queue ! audioconvert ! i.sink_4   \<br>   d.src_5 ! queue ! audioconvert ! i.sink_5</span><br>```<br><br></div><div>I would like to understand why the `wavenc ! wavparse` is necessary, though.  Without that extra conversion step, I get:<br><br><span style="font-family:monospace">```<br>ERROR: from element /GstPipeline:pipeline0/GstDecklinkAudioSrc:decklinkaudiosrc0: Internal data stream error.</span><br>```<br></div><div><br>I also discovered that trying to remap the channels also fails with a message like:<br><br>```<br><span style="font-family:monospace">could not link audioconvert8 to i</span><br>```<br><br></div><div>I tried the first "Example launch line" @ <a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-interleave.html">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-interleave.html</a><br><br></div><div>and it fails exactly the same way.  Is this a regression?<br></div><div><br></div><div>For the end result, I want a transport stream.  PCM is not allowed in a TS, so AC3 seems like the best choice.  However, avenc_ac3 only accepts 6 channels.   If my SDI source has more than 6 channels, it will be "secondary" audio anyway, so having a second (or more) AC3 track should be fine.<br><br></div><div>Thank you for any insight.<br><br></div><div>John<br><br></div><div><br><br></div></div>