[whatwg] HTML5 video: frame accuracy / SMPTE
glenn at zewt.org
Fri Jan 21 14:11:56 PST 2011
On Fri, Jan 21, 2011 at 4:40 PM, Philip Jägenstedt <philipj at opera.com> wrote:
> I'm fine with any terminology, as long as it allows implementations to seek
> to some other time than currentTime if it's (much) faster to do so.
> GStreamer has the flags GST_SEEK_FLAG_ACCURATE and GST_SEEK_FLAG_KEY_UNIT,
> if that's any inspiration.
Should there be any consistency requirements for fast seeking?
Suppose you have a format that's high-bitrate but cheap to decode.
Accurately seeking is fast if the data is already buffered, but slow
if not, since it's limited by bandwidth and not CPU.
An implementation might decide to snap to a keyframe if the needed
data isn't yet buffered, so it doesn't spend several seconds
downloading all of the data; but if it the data is already buffered,
to seek precisely.
This could have unexpected side-effects. Should this be allowed? I'd
suggest that fast seeking should always be consistent with itself, at
least for a particular video instance.
On Fri, Jan 21, 2011 at 5:05 PM, Gregory Maxwell <gmaxwell at gmail.com> wrote:
> One question about inexact seeking is what should the client do when
> the current playtime is closer to the requested time than what the
> inexact seek would provide?
The above would also answer your question: seeking would be unaffected
by the current play cursor.
More information about the whatwg