[MPlayer-dev-eng] [PATCH] further dvr-ms playback improvements

John Donaghy johnfdonaghy at gmail.com
Wed Sep 27 20:16:15 CEST 2006


> > Anyway I discovered that the PTS values in the file can be used to
> > calculate an accurate 'average frame time'. The values in the file are
> > always slightly inaccurate but stay very close to the real value. So
> > after about 1-2 seconds of playback you can easily calculate an
> > accurate 'average frame time' for both HD ans SD content.

I've attached an improved patch that works by continuously
recalculating the  'average frame time' rather than simply reading it
from the container. The reason for doing it this way is that the value
in the container is wrong in at least one example I have (it may well
be wrong for all HD recordings).

This approach works well for all the examples I have as long as the
user doesnt seek too early  - ie before an accurate average has been
calculated. Once a seek is performed we no longer know the frame
number and so cant calculate the average frame time. There may be ways
to improve upon this and I'm open to suggestions.

Perhaps it's possible to fix the framerate and stop recalculating once
it approximates a typical values (eg 0.033 for NTSC ot 0.40 for PAL)
but I havent attempted anything like this here.


John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asfpts3.patch
Type: application/octet-stream
Size: 3127 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060927/85c809a7/attachment.obj>


More information about the MPlayer-dev-eng mailing list