[vorbis] Exact decode positioning

Paul Noffke paul at mindwalk.co.uk
Fri Jan 24 08:38:48 PST 2003



Mike,

Thanks for this, it seems like a goer to me.  Could you point me to any sample 
code that uses the lower level interfaces?

Thanks
Paul

Quoting Michael Smith <msmith at xiph.org>:

> On Friday 24 January 2003 20:36, Paul Noffke wrote:
> > Giuliano,
> >
> > I have this mechanism working for the MAD mp3 decoder and I'm getting the
> > players sync'd to within 10 milliseconds.  The method I use is to have
> > the "master player" map it's current playback (decoded) position to the
> > corresponding encoded (raw) position.  The "slave player" then reverse
> maps
> > this and compares the result to it's own playback position to make
> > adjustments.
> >
> > And so the key is the "encoded/decoded" cross-reference map.  With MAD I
> > can work out the position in the encoded (raw) stream for each frame that
> > is decoded.  Does anyone know how I could do this using the ogg file
> > interface?
> 
> 
> You'll need to not use libvorbisfile (if you don't require seeking, then the
> 
> lower-level libogg and libvorbis interfaces aren't too bad to use - if you do
> 
> need seeking, then it's really hard to do correctly). Then you can easily 
> maintain a direct mapping between packet and decoded offset.
> 
> Mike
> 
> --- >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-request at xiph.org'
> containing only the word 'unsubscribe' in the body.  No subject is needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
> 

<p><p><p>---------------------------------------------------
This mail sent through http://www.easynetdial.co.uk
--- >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-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list