[theora] OGGZ Seeking in Theora
s_weber at blyth.ch
Mon Jun 28 00:57:56 PDT 2010
Sorry for pushing this up again. I'd really like to implement a correct
Whats the best method to get the time representation of a frame?
Am 21.06.2010 11:58, schrieb Stefan Weber:
> Dear all
> Conrad, thank you for your inputs and your help so far. I will use and
> test the seek-rewrite branch as soon as possible.
> I figured out that the Keyframe position in the granulepos is the
> NUMBER of the keyframe. When seeking with OGGZ, one has to supply the
> TIME-position (milliseconds) of the desired frame. So I made a short
> workaround by calculating the milliseconds position as follows:
> /ms = (granulepos >> shift) * 1000 / noFPS;
> Needless to say, this won't point me to the exact keyframe position.
> Probably this rough calculation is not exact enough?
> What is the best approach to calculate the TIME-position for
> oggz-seeking out of a given frame number?
> Kind regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theora