Re: OGGZ Seeking in Theora
Stefan Weber <[email protected]>
| Newsgroups | gmane.comp.multimedia.ogg.theora.general |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ theora mailing list [email protected] http://lists.xiph.org/mailman/listinfo/theora