[FFmpeg-devel] Seeking to out-of-bounds timestamps

Michael Niedermayer michaelni
Thu Jun 25 20:19:39 CEST 2009

On Thu, Jun 25, 2009 at 01:05:01PM -0000, Wolfram Gloger wrote:
> > From: Michael Niedermayer <michaelni at gmx.at>
> > 
> > Users dont like it if they try to seek forward and that fails because
> > the seek targets 10min in the future while the file is just 9min long
> > or even funnier the file is 11min long but happens not to have a
> > keyframe in the last minute
> Sure, I agree completely!  But both of these are non-issues (even with
> my patch) if AVSEEK_FLAG_BACKWARD is specified.  Which is reasonable if
> the user is willing to accept a timestamp lower than the one specified.

you connot set AVSEEK_FLAG_BACKWARD when seeking forward

if you are demuxing at time 123 and the user seeks forward, lets say
by 10 seconds to 133, specifying AVSEEK_FLAG_BACKWARD means seek to
133 or the first point prior, lets say the closet matching keyframe in
backward direction is at 0, that makes the player seek 2 minutes backward
when the user asks for a 10 second forward seek

again, we are switching to a new API because of this

> > iam not interrested in consistently inconvenient behaviour, and the fact
> > that users complained about the bunch of demuxers that behave like you
> > want, it definitly seems users consider it inconvenient
> ...
> > we have a bugreport about demuxers failing to seek to the end and begin
> > your patch makes more demuxers buggy in that respect. If you have some
> > comments to that report, alternative solutions on how the user should
> > seek, ... these are all welcome
> Ok, please point me to that report(s), searching roundup with "seeking"
> did not turn up obvious candidates.

i wish i would remember something i could use for searching for them


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090625/a5f3cdc4/attachment.pgp>

More information about the ffmpeg-devel mailing list