diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 45f9790c74..f58b117620 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1769,7 +1769,11 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti speed = t != 0.0 ? (double)pts / AV_TIME_BASE / t : -1; if (total_size < 0) av_bprintf(&buf, "size=N/A time="); - else av_bprintf(&buf, "size=%8.0fkB time=", total_size / 1024.0); + else { + int64_t shifted = total_size >> 20; //calculate mB + if(shifted > 25) av_bprintf(&buf, "size=%"PRId64"mB time=", shifted); + else av_bprintf(&buf, "size=%"PRId64"kB time=", total_size >> 10); + } if (pts == AV_NOPTS_VALUE) { av_bprintf(&buf, "N/A "); } else { @@ -4689,11 +4693,11 @@ static int transcode(void) break; if(kbinteractionresult == 1) { //pause fprintf(stderr, "Paused\r"); - + //wait for key getchar(); - - fprintf(stderr, "Unpaused\n"); + + fprintf(stderr, "Unpaused\r"); } } diff --git a/notes b/notes index 49e635e551..19a5e85c79 100644 --- a/notes +++ b/notes @@ -1,5 +1,8 @@ -notes: +notes: ffmpeg.c: key scanning: 3905 mainloop: 4656 - added: 4685 + transcode_init: 3667 + + pause added: 4685 + print size adj.: 1773