AW: [theora-dev] Keyframe seeking in Ogg and spec

Waldvogel, Tobias tobias.waldvogel at realtech.de
Mon Sep 16 13:09:08 PDT 2002



Hi all,

> One problem I see with your proposed implementation is that it does
not
> specify how audio and video would be synchronized, since there are no
> absolute time stamps for the video frames. So it is difficult to
account
> for
> audio latency on different systems, much like when you play an AVI
file.
> Ideally it would be wonderful to have timestamps that could be used to
> synchronize audio and video in a meaningful way, and if I understand
it
> correctly the proposed granulepos formats do not address this.

That's true. On the other hand the timing information is handled by the
codec layer and not on the Ogg layer. So it is sufficient if the codec
can reconstruct the time information. Anyway it would be more convenient
to have the same time base.
In Ogg DSF I convert samples/frames to a reference time to get them in
sync. Therefore the number of frames/sec is stored in the header as the
number of samples in "vi.rate"

> In Ogg, things like the duration of the whole video could come in the
> first
> page (you could send -1 for live transmissions, for example).

There is no need to store the length. If it is just one stream you can
go to the end of the file, take the last "granulepos". You have just to
convert it in to a meaningful unit like time.

Regards,
Tobias Waldvogel

<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