<div dir="ltr">The multistream API lets you specify things like "take these 8 input streams and encode them as 4 stereo pairs in the following arrangement", 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"><<a href="mailto:marc@bowery.com" target="_blank">marc@bowery.com</a>></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>
> Hi Marc,<br>
><br>
> I recommend you have a look at the multistream API and how we use it for<br>
> surround in the Ogg Opus draft. Sounds like the best way to solve your<br>
> problem.<br>
><br>
> Cheers,<br>
><br>
> Jean-Marc<br>
><br>
> On 07/26/2013 06:57 PM, Marc Lindahl wrote:<br>
>> I can't quite figure this out from looking at the repacketizer code.<br>
>><br>
>> Let's say I have 4 separate stereo streams (say from an 8 channel<br>
>> converter) and want to transmit them somewhere in one stream e.g.<br>
>> RTP or the like. (assuming, custom format if necessary)<br>
>><br>
>> So could I merge 4 packets with the repacketizer, TX the merged<br>
>> packets, on the other side RX them then split them with the<br>
>> repacketizer, and feed each of the 4 to a separate decoder to recover<br>
>> the audio?<br>
>><br>
>> Or when you merge do the 'states' get blended somehow on the<br>
>> assumption the audio is all the stream, monotonically increasing<br>
>> time-wise?<br>
>><br>
>> Thanks!<br>
>><br>
>> Marc _______________________________________________ opus mailing<br>
>> 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>
>><br>
><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>