Commit a9485d73 authored by Paul B Mahol's avatar Paul B Mahol

avfilter: document mono option of silencedetect filter

Also provide shorter option, and reorder options in documentation.
parent db6b4b56
...@@ -4171,12 +4171,15 @@ The printed times and duration are expressed in seconds. ...@@ -4171,12 +4171,15 @@ The printed times and duration are expressed in seconds.
The filter accepts the following options: The filter accepts the following options:
@table @option @table @option
@item duration, d
Set silence duration until notification (default is 2 seconds).
@item noise, n @item noise, n
Set noise tolerance. Can be specified in dB (in case "dB" is appended to the 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. 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 @end table
@subsection Examples @subsection Examples
......
...@@ -57,7 +57,8 @@ static const AVOption silencedetect_options[] = { ...@@ -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 }, { "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 }, { "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 }, { "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 } { NULL }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment