diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-27 20:34:31 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-27 20:34:31 +0000 |
commit | 92d46e2cc2f6d36a658ff7f6e1f11ee52f4f0080 (patch) | |
tree | 33a86da65c77a5c2854528bd480900f8c84999eb | |
parent | a84d0c2628b6ae59e8f9aafad19dff057f6e65d0 (diff) |
status print fixes - DVD estimation worx, print remaining time instead of total
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4393 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | mencoder.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/mencoder.c b/mencoder.c index 7a6f57cb85..4cfa0f30fa 100644 --- a/mencoder.c +++ b/mencoder.c @@ -1425,13 +1425,20 @@ if(sh_audio && !demuxer2){ { float t=(GetTimerMS()-timer_start)*0.001f; float len=(demuxer->movi_end-demuxer->movi_start); float p=len>1000 ? (float)(demuxer->filepos-demuxer->movi_start) / len : 0; - mp_msg(MSGT_AVSYNC,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %3dfps ETA:%4dmin/%3dmb A-V:%5.3f \r", +#if 0 + mp_msg(MSGT_AVSYNC,MSGL_STATUS,"%d < %d < %d \r", + (int)demuxer->movi_start, + (int)demuxer->filepos, + (int)demuxer->movi_end); +#else + mp_msg(MSGT_AVSYNC,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %3dfps Trem:%4dmin %3dmb A-V:%5.3f \r", mux_v->timer, decoded_frameno, (int)(p*100), (t>1) ? (int)(decoded_frameno/t) : 0, - (p>0.001) ? (int)(t/p/60) : 0, + (p>0.001) ? (int)((t/p-t)/60) : 0, (p>0.001) ? (int)(ftell(muxer_f)/p/1024/1024) : 0, v_pts_corr ); +#endif } fflush(stdout); @@ -1465,9 +1472,9 @@ aviwrite_write_header(muxer,muxer_f); // update header fclose(muxer_f); if(out_video_codec==VCODEC_FRAMENO && mux_v->timer>100){ - printf("Suggested video bitrate for 650MB CD: %d\n",(int)((650*1024*1024-muxer_f_size)/mux_v->timer/125)); - printf("Suggested video bitrate for 700MB CD: %d\n",(int)((700*1024*1024-muxer_f_size)/mux_v->timer/125)); - printf("Suggested video bitrate for 800MB CD: %d\n",(int)((800*1024*1024-muxer_f_size)/mux_v->timer/125)); + printf("Recommended video bitrate for 650MB CD: %d\n",(int)((650*1024*1024-muxer_f_size)/mux_v->timer/125)); + printf("Recommended video bitrate for 700MB CD: %d\n",(int)((700*1024*1024-muxer_f_size)/mux_v->timer/125)); + printf("Recommended video bitrate for 800MB CD: %d\n",(int)((800*1024*1024-muxer_f_size)/mux_v->timer/125)); } printf("\nVideo stream: %8.3f kbit/s (%d bps) size: %d bytes %5.3f secs %d frames\n", |