comparison mencoder.c @ 17005:3047b92e8402

print the number of encoded frames per seconds (fps) with a greater precision (float instead of int). Original thread: Date: Nov 17, 2005 3:25 PM Subject: [MPlayer-dev-eng] [PATCH] MEncoder: print more precise FPS
author gpoirier
date Thu, 17 Nov 2005 19:17:53 +0000
parents 4951a3abcd1a
children dd5be8f8d16d
comparison
equal deleted inserted replaced
17004:ae416c3d3f4f 17005:3047b92e8402
1424 (mux_a && mux_a->timer>1) ? (int)(mux_a->size/mux_a->timer/125) : 0, 1424 (mux_a && mux_a->timer>1) ? (int)(mux_a->size/mux_a->timer/125) : 0,
1425 audiorate/audiosamples, videorate/videosamples, 1425 audiorate/audiosamples, videorate/videosamples,
1426 duplicatedframes, badframes, skippedframes 1426 duplicatedframes, badframes, skippedframes
1427 ); 1427 );
1428 } else 1428 } else
1429 mp_msg(MSGT_AVSYNC,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %3dfps Trem:%4dmin %3dmb A-V:%5.3f [%d:%d]\r", 1429 mp_msg(MSGT_AVSYNC,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %5.2ffps Trem:%4dmin %3dmb A-V:%5.3f [%d:%d]\r",
1430 mux_v->timer, decoded_frameno, (int)(p*100), 1430 mux_v->timer, decoded_frameno, (int)(p*100),
1431 (t>1) ? (int)(decoded_frameno/t+0.5) : 0, 1431 (t>1) ? (float)(decoded_frameno/t) : 0,
1432 (p>0.001) ? (int)((t/p-t)/60) : 0, 1432 (p>0.001) ? (int)((t/p-t)/60) : 0,
1433 (p>0.001) ? (int)(ftello(muxer_f)/p/1024/1024) : 0, 1433 (p>0.001) ? (int)(ftello(muxer_f)/p/1024/1024) : 0,
1434 v_pts_corr, 1434 v_pts_corr,
1435 (mux_v->timer>1) ? (int)(mux_v->size/mux_v->timer/125) : 0, 1435 (mux_v->timer>1) ? (int)(mux_v->size/mux_v->timer/125) : 0,
1436 (mux_a && mux_a->timer>1) ? (int)(mux_a->size/mux_a->timer/125) : 0 1436 (mux_a && mux_a->timer>1) ? (int)(mux_a->size/mux_a->timer/125) : 0