diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2020-12-21 14:16:49 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2020-12-23 00:41:07 +0530 |
commit | 842714b5cb4112ec6805ed228b34d711024ad9e2 (patch) | |
tree | 74ad01f5af35ea046040dc5ead7c8fc310b90e57 /fftools/ffmpeg.c | |
parent | 686c07fb1e0455c4205eaad18e8a01bf64058dec (diff) | |
download | ffmpeg-842714b5cb4112ec6805ed228b34d711024ad9e2.tar.gz |
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.
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index b446d9b206..6d25f1bca9 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -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; } |