[FFmpeg-cvslog] avfilter: document mono option of silencedetect filter
Paul B Mahol
git at videolan.org
Mon Sep 24 00:14:02 EEST 2018
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 23 23:10:51 2018 +0200| [a9485d7318d1354acc29006794ffcb85f7c3d6d6] | committer: Paul B Mahol
avfilter: document mono option of silencedetect filter
Also provide shorter option, and reorder options in documentation.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a9485d7318d1354acc29006794ffcb85f7c3d6d6
---
doc/filters.texi | 9 ++++++---
libavfilter/af_silencedetect.c | 3 ++-
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index 73de0fbea7..5ee2bb52ec 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -4171,12 +4171,15 @@ The printed times and duration are expressed in seconds.
The filter accepts the following options:
@table @option
- at item duration, d
-Set silence duration until notification (default is 2 seconds).
-
@item noise, n
Set noise tolerance. Can be specified in dB (in case "dB" is appended to the
specified value) or amplitude ratio. Default is -60dB, or 0.001.
+
+ at item duration, d
+Set silence duration until notification (default is 2 seconds).
+
+ at item mono, m
+Process each channel separately, instead of combined. By default is disabled.
@end table
@subsection Examples
diff --git a/libavfilter/af_silencedetect.c b/libavfilter/af_silencedetect.c
index d9582aa589..3a71f3902a 100644
--- a/libavfilter/af_silencedetect.c
+++ b/libavfilter/af_silencedetect.c
@@ -57,7 +57,8 @@ static const AVOption silencedetect_options[] = {
{ "noise", "set noise tolerance", OFFSET(noise), AV_OPT_TYPE_DOUBLE, {.dbl=0.001}, 0, DBL_MAX, FLAGS },
{ "d", "set minimum duration in seconds", OFFSET(duration), AV_OPT_TYPE_DOUBLE, {.dbl=2.}, 0, 24*60*60, FLAGS },
{ "duration", "set minimum duration in seconds", OFFSET(duration), AV_OPT_TYPE_DOUBLE, {.dbl=2.}, 0, 24*60*60, FLAGS },
- { "mono", "check each channel separately", OFFSET(mono), AV_OPT_TYPE_BOOL, {.i64=0.}, 0, 1, FLAGS },
+ { "mono", "check each channel separately", OFFSET(mono), AV_OPT_TYPE_BOOL, {.i64=0.}, 0, 1, FLAGS },
+ { "m", "check each channel separately", OFFSET(mono), AV_OPT_TYPE_BOOL, {.i64=0.}, 0, 1, FLAGS },
{ NULL }
};
More information about the ffmpeg-cvslog
mailing list