]> git.sesse.net Git - ffmpeg/commitdiff
avfilter: document mono option of silencedetect filter
authorPaul B Mahol <onemda@gmail.com>
Sun, 23 Sep 2018 21:10:51 +0000 (23:10 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 23 Sep 2018 21:10:51 +0000 (23:10 +0200)
Also provide shorter option, and reorder options in documentation.

doc/filters.texi
libavfilter/af_silencedetect.c

index 73de0fbea7da2075916d79acfbb63d5ba23dc215..5ee2bb52ec3dd95d243a3859eb0ed47c811cddf7 100644 (file)
@@ -4171,12 +4171,15 @@ The printed times and duration are expressed in seconds.
 The filter accepts the following options:
 
 @table @option
-@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.
+
+@item duration, d
+Set silence duration until notification (default is 2 seconds).
+
+@item mono, m
+Process each channel separately, instead of combined. By default is disabled.
 @end table
 
 @subsection Examples
index d9582aa589910e4f725405c1f518e81aaf4447d2..3a71f3902a92c9b20de815ce62623702e9d7cf5c 100644 (file)
@@ -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 }
 };