mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/af_agate: add support for commands and timeline
This commit is contained in:
parent
62a0368fb4
commit
da83673c8b
@ -1478,6 +1478,10 @@ the reduction.
|
|||||||
Default is @code{average}. Can be @code{average} or @code{maximum}.
|
Default is @code{average}. Can be @code{average} or @code{maximum}.
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
@subsection Commands
|
||||||
|
|
||||||
|
This filter supports the all above options as @ref{commands}.
|
||||||
|
|
||||||
@section aiir
|
@section aiir
|
||||||
|
|
||||||
Apply an arbitrary Infinite Impulse Response filter.
|
Apply an arbitrary Infinite Impulse Response filter.
|
||||||
@ -5081,6 +5085,10 @@ Default is average. Can be average or maximum.
|
|||||||
Set sidechain gain. Default is 1. Range is from 0.015625 to 64.
|
Set sidechain gain. Default is 1. Range is from 0.015625 to 64.
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
@subsection Commands
|
||||||
|
|
||||||
|
This filter supports the all above options as @ref{commands}.
|
||||||
|
|
||||||
@section silencedetect
|
@section silencedetect
|
||||||
|
|
||||||
Detect silence in an audio stream.
|
Detect silence in an audio stream.
|
||||||
|
@ -63,7 +63,7 @@ typedef struct AudioGateContext {
|
|||||||
} AudioGateContext;
|
} AudioGateContext;
|
||||||
|
|
||||||
#define OFFSET(x) offsetof(AudioGateContext, x)
|
#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[] = {
|
static const AVOption options[] = {
|
||||||
{ "level_in", "set input level", OFFSET(level_in), AV_OPT_TYPE_DOUBLE, {.dbl=1}, 0.015625, 64, A },
|
{ "level_in", "set input level", OFFSET(level_in), AV_OPT_TYPE_DOUBLE, {.dbl=1}, 0.015625, 64, A },
|
||||||
@ -268,6 +268,8 @@ AVFilter ff_af_agate = {
|
|||||||
.priv_class = &agate_class,
|
.priv_class = &agate_class,
|
||||||
.inputs = inputs,
|
.inputs = inputs,
|
||||||
.outputs = outputs,
|
.outputs = outputs,
|
||||||
|
.process_command = ff_filter_process_command,
|
||||||
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* CONFIG_AGATE_FILTER */
|
#endif /* CONFIG_AGATE_FILTER */
|
||||||
@ -445,5 +447,7 @@ AVFilter ff_af_sidechaingate = {
|
|||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
.inputs = sidechaingate_inputs,
|
.inputs = sidechaingate_inputs,
|
||||||
.outputs = sidechaingate_outputs,
|
.outputs = sidechaingate_outputs,
|
||||||
|
.process_command = ff_filter_process_command,
|
||||||
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_SIDECHAINGATE_FILTER */
|
#endif /* CONFIG_SIDECHAINGATE_FILTER */
|
||||||
|
Loading…
Reference in New Issue
Block a user