Martin C. Martin
2001-Feb-11 12:56 UTC
[vorbis-dev] ogg_stream_packetout() and stream mixing
Just to make sure, if I'm mixing 2 streams at the page level, and using ogg_stream_pagein() and ogg_stream_packetout() to extract them, I need two ogg_stream_states, one for each logical stream, and I need to ensure that each ogg_stream_state only sees pages of it's own type, is that right? - Martin --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
At 03:56 PM 2/11/01 -0500, you wrote:>Just to make sure, if I'm mixing 2 streams at the page level, and using >ogg_stream_pagein() and ogg_stream_packetout() to extract them, I need >two ogg_stream_states, one for each logical stream, and I need to ensure >that each ogg_stream_state only sees pages of it's own type, is that >right?Correct. You switch based on the serial number of each page. Michael --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Sun, Feb 11, 2001 at 03:56:15PM -0500, Martin C. Martin wrote:> Just to make sure, if I'm mixing 2 streams at the page level, and using > ogg_stream_pagein() and ogg_stream_packetout() to extract them, I need > two ogg_stream_states, one for each logical stream, and I need to ensure > that each ogg_stream_state only sees pages of it's own type, is that > right?Correct. This is touching on the 'control logic' for mixed media streams that isn't part of libogg [yet], but is planned for the future. For the time being, doing it manually is the correct thing (and will continue to work in the future of course). I *will* have the non-degenerate stream case specced before 1.0, but likely not code written to implicity support it. Monty --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.