Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
7f1b14bc
Commit
7f1b14bc
authored
Aug 10, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add acrusher filter
parent
cc6a59d2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
424 additions
and
1 deletion
+424
-1
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+58
-0
Makefile
libavfilter/Makefile
+1
-0
af_acrusher.c
libavfilter/af_acrusher.c
+362
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+1
-1
No files found.
Changelog
View file @
7f1b14bc
...
...
@@ -14,6 +14,7 @@ version <next>:
- MediaCodec hwaccel
- True Audio (TTA) muxer
- crystalizer audio filter
- acrusher audio filter
version 3.1:
...
...
doc/filters.texi
View file @
7f1b14bc
...
...
@@ -441,6 +441,64 @@ ffmpeg -i first.flac -i second.flac -filter_complex acrossfade=d=10:o=0:c1=exp:c
@end example
@end itemize
@section acrusher
Reduce audio bit resolution.
This filter is bit crusher with enhanced funcionality. A bit crusher
is used to audibly reduce number of bits an audio signal is sampled
with. This doesn't change the bit depth at all, it just produces the
effect. Material reduced in bit depth sounds more harsh and "digital".
This filter is able to even round to continous values instead of discrete
bit depths.
Additionally it has a D/C offset which results in different crushing of
the lower and the upper half of the signal.
An Anti-Aliasing setting is able to produce "softer" crushing sounds.
Another feature of this filter is the logarithmic mode.
This setting switches from linear distances between bits to logarithmic ones.
The result is a much more "natural" sounding crusher which doesn't gate low
signals for example. The human ear has a logarithmic perception, too
so this kind of crushing is much more pleasant.
Logarithmic crushing is also able to get anti-aliased.
The filter accepts the following options:
@table @option
@item level_in
Set level in.
@item level_out
Set level out.
@item bits
Set bit reduction.
@item mix
Set mixing ammount.
@item mode
Can be linear: @code{lin} or logarithmic: @code{log}.
@item dc
Set DC.
@item aa
Set anti-aliasing.
@item samples
Set sample reduction.
@item lfo
Enable LFO. By default disabled.
@item lforange
Set LFO range.
@item lforate
Set LFO rate.
@end table
@section adelay
Delay one or more audio channels.
...
...
libavfilter/Makefile
View file @
7f1b14bc
...
...
@@ -30,6 +30,7 @@ OBJS-$(HAVE_THREADS) += pthread.o
OBJS-$(CONFIG_ABENCH_FILTER)
+=
f_bench.o
OBJS-$(CONFIG_ACOMPRESSOR_FILTER)
+=
af_sidechaincompress.o
OBJS-$(CONFIG_ACROSSFADE_FILTER)
+=
af_afade.o
OBJS-$(CONFIG_ACRUSHER_FILTER)
+=
af_acrusher.o
OBJS-$(CONFIG_ADELAY_FILTER)
+=
af_adelay.o
OBJS-$(CONFIG_AECHO_FILTER)
+=
af_aecho.o
OBJS-$(CONFIG_AEMPHASIS_FILTER)
+=
af_aemphasis.o
...
...
libavfilter/af_acrusher.c
0 → 100644
View file @
7f1b14bc
This diff is collapsed.
Click to expand it.
libavfilter/allfilters.c
View file @
7f1b14bc
...
...
@@ -48,6 +48,7 @@ void avfilter_register_all(void)
REGISTER_FILTER
(
ABENCH
,
abench
,
af
);
REGISTER_FILTER
(
ACOMPRESSOR
,
acompressor
,
af
);
REGISTER_FILTER
(
ACROSSFADE
,
acrossfade
,
af
);
REGISTER_FILTER
(
ACRUSHER
,
acrusher
,
af
);
REGISTER_FILTER
(
ADELAY
,
adelay
,
af
);
REGISTER_FILTER
(
AECHO
,
aecho
,
af
);
REGISTER_FILTER
(
AEMPHASIS
,
aemphasis
,
af
);
...
...
libavfilter/version.h
View file @
7f1b14bc
...
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 6
#define LIBAVFILTER_VERSION_MINOR 5
0
#define LIBAVFILTER_VERSION_MINOR 5
1
#define LIBAVFILTER_VERSION_MICRO 100
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
...
...
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