I am putting together an ogg mux/demux application which uses two logical streams. One is a vorbis stream, the other is some application specific data. This came together really quickly, following the ogg/vorbis documentation it took only a few hours to get it up and running. Just a small question... My application stream is currently running as a continuous stream but really I want it to be handled by ogg as discontinuous. Documentation http://xiph.org/ogg/doc/ogg-multiplex.html states "...codec is able to ascertain (and inform the Ogg layer) as to [continuous or discontinuous] after decoding the initial stream header." Question is - how does my application stream decoder tell the ogg demux to treat my stream as discontinuous? Perhaps I've missed something but I couldn't find a library function which my decoder can call to do that. -- Paul Nicholson http://abelian.org/ --
ogg.k.ogg.k at googlemail.com
2010-Jun-03 09:03 UTC
[ogg-dev] Setup of discontinuous stream demux
> Question is - how does my application stream decoder tell the > ogg demux to treat my stream as discontinuous? Perhaps I'veYou don't tell libogg. Your demuxing logic just knows that this codec is continuous and this one is not, and will only keep looking for more data for those ones it knows to be continuous. I'm assuming the demux logic is your own code there.
> You don't tell libogg. Your demuxing logic just knows that> this codec is continuous and this one is not, Ah I see. In that case my demuxing code is already doing what it needs to do. It's just that the documentation left me with the thought that I needed to tell ogg about it too. Now it is clear. Thanks for the quick reply. PS, really like the API and docs - very quick to implement something from scratch. Nice job! -- Paul Nicholson http://abelian.org/ --