[MPlayer-dev-eng] Re: [PATCH] dvr-ms fixes for pts, key frame detection and seeking
robh at rut.org
Thu Feb 8 21:56:24 CET 2007
On Thu, Feb 08, 2007 at 12:19:48PM -0600, John Donaghy wrote:
> [...] what I'm doing at the minute is recalculating the
> average everytime I find an I-frame - by subtracting the pts of the previous
> I-frame and dividing by the number of frames in the GOP. I always use the
> pts for I-frames directly, and for B and P frames I simply add to that the
> newest average x the relative frame number.
that should avoid the need to skip initial frames when reading up to the
second I-frame I would think. the conventional mplayer timing
calculations would be utilized until the number of I-frames have passed
needed for your calculations to correct the precision of the timing from
that point forward.
More information about the MPlayer-dev-eng