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
ae5a4353
Commit
ae5a4353
authored
Jan 31, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add afirsrc filter
parent
0f0f2ab0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
372 additions
and
1 deletion
+372
-1
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+38
-0
Makefile
libavfilter/Makefile
+1
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
asrc_afirsrc.c
libavfilter/asrc_afirsrc.c
+330
-0
version.h
libavfilter/version.h
+1
-1
No files found.
Changelog
View file @
ae5a4353
...
...
@@ -34,6 +34,7 @@ version <next>:
- Argonaut Games ASF demuxer
- xfade video filter
- xfade_opencl filter
- afirsrc audio filter source
version 4.2:
...
...
doc/filters.texi
View file @
ae5a4353
...
...
@@ -5857,6 +5857,44 @@ aevalsrc="0.1*sin(2*PI*(360-2.5/2)*t) | 0.1*sin(2*PI*(360+2.5/2)*t)"
@end itemize
@section afirsrc
Generate a FIR coefficients using frequency sampling method.
The resulting stream can be used with @ref{afir} filter for filtering the audio signal.
The filter accepts the following options:
@table @option
@item taps, t
Set number of filter coefficents in output audio stream.
Default value is 1025.
@item frequency, f
Set frequency points from where magnitude and phase are set.
This must be in non decreasing order, and first element must be 0, while last element
must be 1. Elements are separated by white spaces.
@item magnitude, m
Set magnitude value for every frequency point set by @option{frequency}.
Number of values must be same as number of frequency points.
Values are separated by white spaces.
@item phase, p
Set phase value for every frequency point set by @option{frequency}.
Number of values must be same as number of frequency points.
Values are separated by white spaces.
@item sample_rate, r
Set sample rate, default is 44100.
@item nb_samples, n
Set number of samples per each frame. Default is 1024.
@item win_func, w
Set window function. Default is blackman.
@end table
@section anullsrc
The null audio source, return unprocessed audio frames. It is mainly useful
...
...
libavfilter/Makefile
View file @
ae5a4353
...
...
@@ -144,6 +144,7 @@ OBJS-$(CONFIG_VOLUME_FILTER) += af_volume.o
OBJS-$(CONFIG_VOLUMEDETECT_FILTER)
+=
af_volumedetect.o
OBJS-$(CONFIG_AEVALSRC_FILTER)
+=
aeval.o
OBJS-$(CONFIG_AFIRSRC_FILTER)
+=
asrc_afirsrc.o
OBJS-$(CONFIG_ANOISESRC_FILTER)
+=
asrc_anoisesrc.o
OBJS-$(CONFIG_ANULLSRC_FILTER)
+=
asrc_anullsrc.o
OBJS-$(CONFIG_FLITE_FILTER)
+=
asrc_flite.o
...
...
libavfilter/allfilters.c
View file @
ae5a4353
...
...
@@ -138,6 +138,7 @@ extern AVFilter ff_af_volume;
extern
AVFilter
ff_af_volumedetect
;
extern
AVFilter
ff_asrc_aevalsrc
;
extern
AVFilter
ff_asrc_afirsrc
;
extern
AVFilter
ff_asrc_anoisesrc
;
extern
AVFilter
ff_asrc_anullsrc
;
extern
AVFilter
ff_asrc_flite
;
...
...
libavfilter/asrc_afirsrc.c
0 → 100644
View file @
ae5a4353
This diff is collapsed.
Click to expand it.
libavfilter/version.h
View file @
ae5a4353
...
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR 7
4
#define LIBAVFILTER_VERSION_MINOR 7
5
#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