Default is @code{average}. Can be @code{average} or @code{maximum}.
@end table
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
@section aiir
Apply an arbitrary Infinite Impulse Response filter.
Set sidechain gain. Default is 1. Range is from 0.015625 to 64.
@end table
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
@section silencedetect
Detect silence in an audio stream.
} AudioGateContext;
#define OFFSET(x) offsetof(AudioGateContext, x)
-#define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
+#define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
static const AVOption options[] = {
{ "level_in", "set input level", OFFSET(level_in), AV_OPT_TYPE_DOUBLE, {.dbl=1}, 0.015625, 64, A },
.priv_class = &agate_class,
.inputs = inputs,
.outputs = outputs,
+ .process_command = ff_filter_process_command,
+ .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
};
#endif /* CONFIG_AGATE_FILTER */
.uninit = uninit,
.inputs = sidechaingate_inputs,
.outputs = sidechaingate_outputs,
+ .process_command = ff_filter_process_command,
+ .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
};
#endif /* CONFIG_SIDECHAINGATE_FILTER */