Commit 2e02d712 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: print data size too in statistic

Reviewed-by: 's avatarStefano Sabatini <stefasab@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 41118565
...@@ -1316,10 +1316,11 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti ...@@ -1316,10 +1316,11 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
if (is_last_report) { if (is_last_report) {
int64_t raw= audio_size + video_size + data_size + subtitle_size + extra_size; int64_t raw= audio_size + video_size + data_size + subtitle_size + extra_size;
av_log(NULL, AV_LOG_INFO, "\n"); av_log(NULL, AV_LOG_INFO, "\n");
av_log(NULL, AV_LOG_INFO, "video:%1.0fkB audio:%1.0fkB subtitle:%1.0f global headers:%1.0fkB muxing overhead %f%%\n", av_log(NULL, AV_LOG_INFO, "video:%1.0fkB audio:%1.0fkB subtitle:%1.0f data:%1.0f global headers:%1.0fkB muxing overhead %f%%\n",
video_size / 1024.0, video_size / 1024.0,
audio_size / 1024.0, audio_size / 1024.0,
subtitle_size / 1024.0, subtitle_size / 1024.0,
data_size / 1024.0,
extra_size / 1024.0, extra_size / 1024.0,
100.0 * (total_size - raw) / raw 100.0 * (total_size - raw) / raw
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment