[theora] OGGZ Seeking in Theora

Stefan Weber s_weber at blyth.ch
Mon Jun 28 00:57:56 PDT 2010


Dear all

Sorry for pushing this up again. I'd really like to implement a correct 
seeking functionality.
Whats the best method to get the time representation of a frame?

Regards,
Stefan


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,
> Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora/attachments/20100628/0b14dfd2/attachment.htm 


More information about the theora mailing list