ffmpeg: add option stats_period

At present, progress stats are updated at a hardcoded interval of
half a second. For long processes, this can lead to bloated
logs and progress reports.

Users can now set a custom period using option -stats_period
Default is kept at 0.5 seconds.
This commit is contained in:
Gyan Doshi
2020-12-21 14:16:49 +05:30
parent 686c07fb1e
commit 842714b5cb
4 changed files with 26 additions and 2 deletions

View File

@@ -1699,7 +1699,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
last_time = cur_time;
return;
}
if ((cur_time - last_time) < 500000)
if ((cur_time - last_time) < stats_period)
return;
last_time = cur_time;
}