[FFmpeg-devel] [RFC] better ogg seeking, keyframes only
Michael Niedermayer
michaelni
Thu Jun 26 12:35:45 CEST 2008
On Sun, Mar 23, 2008 at 04:37:05PM +0100, Diego Biurrun wrote:
> On Wed, Mar 19, 2008 at 01:16:16PM +0100, Reimar D?ffinger wrote:
> > I admit this is a rather ugly patch, but it improves things a lot, so
> > maybe you can have a look and get it committable.
> > There are several issues with seeking: for audio, PKT_FLAG_KEY is never
> > set, so the patch ignores it there, the data_offset set by the code in
> > util.c is wrong, so this code overrides it, and the most annoying
> > thing: a keyframe most likely is split over multiple ogg pages, so
> > this code just returns the start of the last page read by the last
> > get_packet as start offset for the keyframe - this means we might
> > actually end up a few frames before the key frame (in theory up to 255),
> > if the encoded frames are very small.
>
> Hmm, I still get artifacts when seeking in Theora video, for example
> with the samples from mphq...
I can confirm this, it doesnt work here either
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Republics decline into democracies and democracies degenerate into
despotisms. -- 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/20080626/24090c79/attachment.pgp>
More information about the ffmpeg-devel
mailing list