[FFmpeg-cvslog] avfilter/af_agate: add support for commands and timeline

Paul B Mahol git at videolan.org
Mon Nov 30 22:42:53 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Nov 30 21:40:52 2020 +0100| [da83673c8b90e69a93d65856fcfa8b169e5c1452] | committer: Paul B Mahol

avfilter/af_agate: add support for commands and timeline

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da83673c8b90e69a93d65856fcfa8b169e5c1452
---

 doc/filters.texi       | 8 ++++++++
 libavfilter/af_agate.c | 6 +++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 06ed28f3f9..d2afc7115d 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -1478,6 +1478,10 @@ the reduction.
 Default is @code{average}. Can be @code{average} or @code{maximum}.
 @end table
 
+ at subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section aiir
 
 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.
 @end table
 
+ at subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section silencedetect
 
 Detect silence in an audio stream.
diff --git a/libavfilter/af_agate.c b/libavfilter/af_agate.c
index 9efc6f9c40..5fcf6eceb1 100644
--- a/libavfilter/af_agate.c
+++ b/libavfilter/af_agate.c
@@ -63,7 +63,7 @@ typedef struct AudioGateContext {
 } 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 },
@@ -268,6 +268,8 @@ AVFilter ff_af_agate = {
     .priv_class     = &agate_class,
     .inputs         = inputs,
     .outputs        = outputs,
+    .process_command = ff_filter_process_command,
+    .flags          = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
 };
 
 #endif /* CONFIG_AGATE_FILTER */
@@ -445,5 +447,7 @@ AVFilter ff_af_sidechaingate = {
     .uninit         = uninit,
     .inputs         = sidechaingate_inputs,
     .outputs        = sidechaingate_outputs,
+    .process_command = ff_filter_process_command,
+    .flags          = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
 };
 #endif  /* CONFIG_SIDECHAINGATE_FILTER */



More information about the ffmpeg-cvslog mailing list