<div dir="ltr">The multistream API lets you specify things like &quot;take these 8 input streams and encode them as 4 stereo pairs in the following arrangement&quot;, and produces output that includes all 4 stereo encodings glued together into one packet.  That packet can then be losslessly split at some later point.<div>
<br></div><div>If you need to mux some freshly-encoded streams and some streams that were previously encoded ... well, you might have to write some code yourself, but you can still use the same bitstream format as Multistream.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 26, 2013 at 6:55 PM, Marc Lindahl <span dir="ltr">&lt;<a href="mailto:marc@bowery.com" target="_blank">marc@bowery.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Jean-Marc,<br>
<br>
I looked at that but importantly these streams need to remain absolutely independent,<br>
<br>
Further they may have been encoded at some previous time.<br>
<br>
So my question stands.<br>
<br>
Thanks,<br>
Marc<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Jul 26, 2013, at 9:10 PMEDT, Jean-Marc Valin wrote:<br>
<br>
&gt; Hi Marc,<br>
&gt;<br>
&gt; I recommend you have a look at the multistream API and how we use it for<br>
&gt; surround in the Ogg Opus draft. Sounds like the best way to solve your<br>
&gt; problem.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt;       Jean-Marc<br>
&gt;<br>
&gt; On 07/26/2013 06:57 PM, Marc Lindahl wrote:<br>
&gt;&gt; I can&#39;t quite figure this out from looking at the repacketizer code.<br>
&gt;&gt;<br>
&gt;&gt; Let&#39;s say I have 4 separate stereo streams (say from an 8 channel<br>
&gt;&gt; converter)  and want to transmit them somewhere in one stream e.g.<br>
&gt;&gt; RTP or the like.  (assuming, custom format if necessary)<br>
&gt;&gt;<br>
&gt;&gt; So could I merge 4 packets with the repacketizer, TX the merged<br>
&gt;&gt; packets, on the other side RX them then split them with the<br>
&gt;&gt; repacketizer, and feed each of the 4 to a separate decoder to recover<br>
&gt;&gt; the audio?<br>
&gt;&gt;<br>
&gt;&gt; Or when you merge do the &#39;states&#39; get blended somehow on the<br>
&gt;&gt; assumption the audio is all the stream, monotonically increasing<br>
&gt;&gt; time-wise?<br>
&gt;&gt;<br>
&gt;&gt; Thanks!<br>
&gt;&gt;<br>
&gt;&gt; Marc _______________________________________________ opus mailing<br>
&gt;&gt; list <a href="mailto:opus@xiph.org">opus@xiph.org</a> <a href="http://lists.xiph.org/mailman/listinfo/opus" target="_blank">http://lists.xiph.org/mailman/listinfo/opus</a><br>
&gt;&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
opus mailing list<br>
<a href="mailto:opus@xiph.org">opus@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/opus" target="_blank">http://lists.xiph.org/mailman/listinfo/opus</a><br>
</div></div></blockquote></div><br></div>