[theora-dev] Granule Pos of start of page...

illiminable ogg at illiminable.com
Wed May 5 01:32:28 PDT 2004

OK... i've come across a problem trying to get the granule pos of the start
of the page... it's not so crucial with single stream ogg files... but now
that i have theora+vorbis in a file, i'm finding that when i seek to a
position, i have no way to determine the relative offsets of the different
streams at the new seek point and hence the av is out of sync.

So given a page, is it possible to determine the start time... or do i have
to code this separately for each codec and decode the page determine the
quantity of data and then subtract it ? Or else scan backwards looking for
each of the other streams and use a previous page endpoint as a start point
for the page i actaully want to know about.

The problem with using previous pages is that if the page you want to know
about has a part of a packet from the previous page... then it's actually
the last packet on the previous page that starts at that time.

Is there an easy solution for this ?



<p>--- >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 'theora-dev-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 Theora-dev mailing list