aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2020-12-21 14:16:49 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2020-12-23 00:41:07 +0530
commit842714b5cb4112ec6805ed228b34d711024ad9e2 (patch)
tree74ad01f5af35ea046040dc5ead7c8fc310b90e57 /fftools/ffmpeg.c
parent686c07fb1e0455c4205eaad18e8a01bf64058dec (diff)
downloadffmpeg-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.c2
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;
}