[FFmpeg-devel] [PATCH] flv forward seeking

Michael Niedermayer michaelni
Tue Oct 16 02:21:57 CEST 2007

On Mon, Oct 15, 2007 at 05:13:25PM -0700, Alexandre Guion wrote:
> Forward seeking in flv files doesn't seem to work when we haven't reached that position in the file.
> Here's a proposition for a patch getting the last timestamp we know, and then getting as many packets as we need to reach the right keyframe. It doesn't work that well on remote files, but at least works on local files.

rejected you just duplicate the generic seeking
see av_seek_frame_generic() it supports forward seeking like that
if it doesnt work find out why and fix it

> I was looking to get the packet directly instead of getting all the packets in between. Does anybody has an idea on how to do this ?

yes implement AVInputFormat.read_timestamp()

also tabs are forbidden in ffmpeg svn

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- 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/20071016/4a0c3b2c/attachment.pgp>

More information about the ffmpeg-devel mailing list