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

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Thu Nov 17 16:34:34 CET 2005


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.

-- 
Jindrich Makovicka




More information about the MPlayer-dev-eng mailing list