[MPlayer-dev-eng] [PATCH] Adding frame count to time stamps in OSD

Trent Piepho xyzzy at speakeasy.org
Fri Apr 13 23:59:48 CEST 2007


On Fri, 13 Apr 2007, Uoti Urpala wrote:
> On Fri, 2007-04-13 at 20:27 +0200, Christian Aistleitner wrote:
> > the attached patch allows to add a frame count to the timestamps of OSD,
> > by passing the option "-osd-show-frame-count".
> >
> > However, this frame count is only an approximate frame count, because of
> > mplayer's use of floats for pts and rounding errors.
> >
> > But even this approximate frame count is usefull, because when creating
> > edls using mplayer, I found it quite hard to get to the exact frame, where
>
> sh_video->fps isn't necessarily reliable (and certainly isn't for
> variable frame rate videos). Even in the case where frame rate is
> constant how would this be any better than showing the current pts with
> more decimals?

This is what I did, show pts with 3 digits.  It makes it much easier to
establish the relationship between the value in an EDL file and the frame
you are looking at.



More information about the MPlayer-dev-eng mailing list