Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
996b13fa
Commit
996b13fa
authored
Nov 26, 2021
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add audio dynamic equalizer filter
parent
466441a0
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
395 additions
and
1 deletion
+395
-1
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+76
-0
Makefile
libavfilter/Makefile
+1
-0
af_adynamicequalizer.c
libavfilter/af_adynamicequalizer.c
+315
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+1
-1
No files found.
Changelog
View file @
996b13fa
...
...
@@ -40,6 +40,7 @@ version <next>:
- adynamicsmooth audio filter
- libplacebo filter
- vflip_vulkan, hflip_vulkan and flip_vulkan filters
- adynamicequalizer audio filter
version 4.4:
...
...
doc/filters.texi
View file @
996b13fa
...
...
@@ -843,6 +843,82 @@ Compute derivative/integral of audio stream.
Applying both filters one after another produces original audio.
@section adynamicequalizer
Apply dynamic equalization to input audio stream.
A description of the accepted options follows.
@table @option
@item threshold
Set the detection threshold used to trigger equalization.
Threshold detection is using bandpass filter.
Default value is 0. Allowed range is from 0 to 100.
@item dfrequency
Set the detection frequency in Hz used for bandpass filter used to trigger equalization.
Default value is 1000 Hz. Allowed range is between 2 and 1000000 Hz.
@item dqfactor
Set the detection resonance factor for bandpass filter used to trigger equalization.
Default value is 1. Allowed range is from 0.001 to 1000.
@item tfrequency
Set the target frequency of equalization filter.
Default value is 1000 Hz. Allowed range is between 2 and 1000000 Hz.
@item tqfactor
Set the target resonance factor for target equalization filter.
Default value is 1. Allowed range is from 0.001 to 1000.
@item attack
Set the amount of milliseconds the signal from detection has to rise above
the detection threshold before equalization starts.
Default is 20. Allowed range is between 1 and 2000.
@item release
Set the amount of milliseconds the signal from detection has to fall below the
detection threshold before equalization ends.
Default is 200. Allowed range is between 1 and 2000.
@item knee
Curve the sharp knee around the detection threshold to calculate
equalization gain more softly.
Default is 1. Allowed range is between 0 and 8.
@item ratio
Set the ratio by which the equalization gain is raised.
Default is 1. Allowed range is between 1 and 20.
@item makeup
Set the makeup offset in dB by which the equalization gain is raised.
Default is 0. Allowed range is between 0 and 30.
@item range
Set the max allowed cut/boost amount in dB. Default is 0.
Allowed range is from 0 to 200.
@item slew
Set the slew factor. Default is 1. Allowed range is from 1 to 200.
@item mode
Set the mode of filter operation, can be one of the following:
@table @samp
@item listen
Output only isolated bandpass signal.
@item cut
Cut frequencies above detection threshold.
@item boost
Boost frequencies bellow detection threshold.
@end table
Default mode is @samp{cut}.
@end table
@subsection Commands
This filter supports the all above options as @ref{commands}.
@section adynamicsmooth
Apply dynamic smoothing to input audio stream.
...
...
libavfilter/Makefile
View file @
996b13fa
...
...
@@ -44,6 +44,7 @@ OBJS-$(CONFIG_ADECORRELATE_FILTER) += af_adecorrelate.o
OBJS-$(CONFIG_ADELAY_FILTER)
+=
af_adelay.o
OBJS-$(CONFIG_ADENORM_FILTER)
+=
af_adenorm.o
OBJS-$(CONFIG_ADERIVATIVE_FILTER)
+=
af_aderivative.o
OBJS-$(CONFIG_ADYNAMICEQUALIZER_FILTER)
+=
af_adynamicequalizer.o
OBJS-$(CONFIG_ADYNAMICSMOOTH_FILTER)
+=
af_adynamicsmooth.o
OBJS-$(CONFIG_AECHO_FILTER)
+=
af_aecho.o
OBJS-$(CONFIG_AEMPHASIS_FILTER)
+=
af_aemphasis.o
...
...
libavfilter/af_adynamicequalizer.c
0 → 100644
View file @
996b13fa
This diff is collapsed.
Click to expand it.
libavfilter/allfilters.c
View file @
996b13fa
...
...
@@ -37,6 +37,7 @@ extern const AVFilter ff_af_adecorrelate;
extern
const
AVFilter
ff_af_adelay
;
extern
const
AVFilter
ff_af_adenorm
;
extern
const
AVFilter
ff_af_aderivative
;
extern
const
AVFilter
ff_af_adynamicequalizer
;
extern
const
AVFilter
ff_af_adynamicsmooth
;
extern
const
AVFilter
ff_af_aecho
;
extern
const
AVFilter
ff_af_aemphasis
;
...
...
libavfilter/version.h
View file @
996b13fa
...
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 8
#define LIBAVFILTER_VERSION_MINOR
19
#define LIBAVFILTER_VERSION_MINOR
20
#define LIBAVFILTER_VERSION_MICRO 100
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment