Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ffmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Samuel Mira
ffmpeg
Commits
a23a56e7
Commit
a23a56e7
authored
7 years ago
by
Paul B Mahol
Browse files
Options
Downloads
Patches
Plain Diff
libavfilter/af_biquads: add shorter option for width_type
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
8a093253
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/filters.texi
+10
-10
10 additions, 10 deletions
doc/filters.texi
libavfilter/af_biquads.c
+8
-0
8 additions, 0 deletions
libavfilter/af_biquads.c
with
18 additions
and
10 deletions
doc/filters.texi
+
10
−
10
View file @
a23a56e7
...
...
@@ -1074,7 +1074,7 @@ The filter accepts the following options:
@item frequency, f
Set frequency in Hz.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -1809,7 +1809,7 @@ Set the filter's central frequency. Default is @code{3000}.
@item csg
Constant skirt gain if set to 1. Defaults to 0.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -1841,7 +1841,7 @@ The filter accepts the following options:
@item frequency, f
Set the filter's central frequency. Default is @code{3000}.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -1880,7 +1880,7 @@ Set the filter's central frequency and so can be used
to extend or reduce the frequency range to be boosted or cut.
The default value is @code{100} Hz.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -2498,7 +2498,7 @@ The filter accepts the following options:
@item frequency, f
Set the filter's central frequency in Hz.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -2527,13 +2527,13 @@ Specify which channels to filter, by default all available are filtered.
@item
Attenuate 10 dB at 1000 Hz, with a bandwidth of 200 Hz:
@example
equalizer=f=1000:
width_type
=h:width=200:g=-10
equalizer=f=1000:
t
=h:width=200:g=-10
@end example
@item
Apply 2 dB gain at 1000 Hz with Q 1 and attenuate 5 dB at 100 Hz with Q 2:
@example
equalizer=f=1000:
width_type=q:width
=1:g=2,equalizer=f=100:
width_type=q:width
=2:g=-5
equalizer=f=1000:
t=q:w
=1:g=2,equalizer=f=100:
t=q:w
=2:g=-5
@end example
@end itemize
...
...
@@ -2847,7 +2847,7 @@ Set frequency in Hz. Default is 3000.
@item poles, p
Set number of poles. Default is 2.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -3134,7 +3134,7 @@ Set frequency in Hz. Default is 500.
@item poles, p
Set number of poles. Default is 2.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -3890,7 +3890,7 @@ Set the filter's central frequency and so can be used
to extend or reduce the frequency range to be boosted or cut.
The default value is @code{3000} Hz.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
This diff is collapsed.
Click to expand it.
libavfilter/af_biquads.c
+
8
−
0
View file @
a23a56e7
...
...
@@ -493,6 +493,7 @@ static const AVOption equalizer_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -513,6 +514,7 @@ static const AVOption bass_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
100
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
100
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -533,6 +535,7 @@ static const AVOption treble_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -553,6 +556,7 @@ static const AVOption bandpass_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -572,6 +576,7 @@ static const AVOption bandreject_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -590,6 +595,7 @@ static const AVOption lowpass_options[] = {
{
"frequency"
,
"set frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
500
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
500
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -610,6 +616,7 @@ static const AVOption highpass_options[] = {
{
"frequency"
,
"set frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -630,6 +637,7 @@ static const AVOption allpass_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
HERTZ
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
HERTZ
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment