diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-11-17 19:17:53 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-11-17 19:17:53 +0000 |
commit | 618d511e437d4210802c457df4787909ae3dad43 (patch) | |
tree | 8be6ed04f69dfef98fc4b8ec7feb131efacf893c /mencoder.c | |
parent | 4e999610e79706d80f516c535228c8d388ae49bf (diff) | |
download | mpv-618d511e437d4210802c457df4787909ae3dad43.tar.bz2 mpv-618d511e437d4210802c457df4787909ae3dad43.tar.xz |
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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17006 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r-- | mencoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mencoder.c b/mencoder.c index c8472243f7..892fa4e7a7 100644 --- a/mencoder.c +++ b/mencoder.c @@ -1426,9 +1426,9 @@ if(sh_audio && !demuxer2){ duplicatedframes, badframes, skippedframes ); } 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.2ffps 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, (p>0.001) ? (int)((t/p-t)/60) : 0, (p>0.001) ? (int)(ftello(muxer_f)/p/1024/1024) : 0, v_pts_corr, |