<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div id="compose" contenteditable="true" aria-label="Message body" style="padding-left: 16px; padding-right: 16px; padding-bottom: 8px;">
<div>Thanks Sebastian,</div>
<div>I was able to solve this.</div>
<div>This is the working pipeline,</div>
<div><br>
</div>
<div>gst-launch-1.0 interleave name=i filesrc location=FourMICS_RR_long.wav ! decodebin ! audioconvert ! audioresample ! audio/x-raw,rate=24000,format=F32LE ! queue ! i.sink_0 </div>
<div>filesrc location=FourMICS_CR_long.wav ! decodebin ! audioconvert ! audioresample ! audio/x-raw,channels=(int)1,rate=24000,format=F32LE ! queue ! i.sink_1 </div>
<div>filesrc location=FourMICS_CL_long.wav ! decodebin ! audioconvert ! audioresample ! audio/x-raw,channels=(int)1,rate=24000,format=F32LE ! queue ! i.sink_2 </div>
<div>filesrc location=FourMICS_LL_long.wav ! decodebin ! audioconvert ! audioresample ! audio/x-raw,channels=(int)1,rate=24000,format=F32LE ! queue ! i.sink_3 </div>
<div>i.src ! capssetter caps=audio/x-raw,channels=4,channel-mask=(bitmask)0x33 ! audioconvert ! audioresample ! vorbisenc ! oggmux ! filesink location=out2.ogg</div>
<div><br>
</div>
<div><br>
</div>
<div>There were two issues </div>
<div>1. the caps need to be set specifically to the interleave </div>
<div>2. vorbisenc bitrate could not bare with 4 channels at 48khz</div>
<div><br>
</div>
</div>
<div class="gmail_quote">Message: 6<br>
Date: Wed, 18 May 2016 15:45:42 +0300<br>
From: Sebastian Dröge <<a dir="ltr" href="mailto:sebastian@centricular.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="3">sebastian@centricular.com</a>><br>
To: Discussion of the development of and with GStreamer<br>
<<a dir="ltr" href="mailto:gstreamer-devel@lists.freedesktop.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="4">gstreamer-devel@lists.freedesktop.org</a>><br>
Subject: Re: interleaving 4 channels of audio into vorbisenc or<br>
opusenc<br>
Message-ID: <<a dir="ltr" href="mailto:1463575542.2897.32.camel@centricular.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="5">1463575542.2897.32.camel@centricular.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On Di, 2016-05-17 at 23:41 +0000, Mar Gonzalez Franco wrote:<br>
> Hi,<br>
> I’m trying to interleave 4 channels of audio into one audio file<br>
> I have managed to successfully save them into wav with wavenc<br>
>  <br>
> [...]<br>
> Same problem<br>
>  <br>
> Any suggestion as of how to solve this?<br>
> I am not restricted only to vorbis, in fact I have similar issues<br>
> also with opusenc.<br>
<br>
(channel-position is not a valid caps field and will just be ignored)<br>
<br>
Can you check what the caps after interleave are, and also if<br>
audioconvert after interleave is doing channel remixing, and if so<br>
between which channel masks / numbers?<br>
<br>
-- <br>
Sebastian Dröge, Centricular Ltd · <br>
</div>
</body>
</html>