[MPlayer-dev-eng] [PATCH] MEncoder: print more precise FPS

Oded Shimon ods15 at ods15.dyndns.org
Thu Nov 17 17:42:16 CET 2005


On Thu, Nov 17, 2005 at 04:34:34PM +0100, Jindrich Makovicka wrote:
> Oded Shimon wrote:
> [...]
> >>	} else
> >>-	mp_msg(MSGT_AVSYNC,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %3dfps 
> >>Trem:%4dmin %3dmb  A-V:%5.3f [%d:%d]\r",
> >>+	mp_msg(MSGT_AVSYNC,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %5.3ffps 
> >>Trem:%4dmin %3dmb  A-V:%5.3f [%d:%d]\r",
> >>	    mux_v->timer, decoded_frameno, (int)(p*100),
> >>-	    (t>1) ? (int)(decoded_frameno/t+0.5) : 0,
> >>+	    (t>1) ? (float)(decoded_frameno/t+0.5) : 0,
> >
> >
> >no +0.5, that as only there for integer rounding.
> 
> there is also progressive NTSC with 23.976 fps, so 6.3 would be more 
> appropriate.

You're way off... this is ENCODING fps, as in, "how much does my pc kick 
ass and how fast is mencoder", not the target fps of the video or whatever.

- ods15




More information about the MPlayer-dev-eng mailing list