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
93414ce8
Commit
93414ce8
authored
Nov 14, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add axcorrelate filter
parent
aaac48fb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
415 additions
and
1 deletion
+415
-1
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+33
-0
Makefile
libavfilter/Makefile
+1
-0
af_axcorrelate.c
libavfilter/af_axcorrelate.c
+378
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+1
-1
No files found.
Changelog
View file @
93414ce8
...
@@ -24,6 +24,7 @@ version <next>:
...
@@ -24,6 +24,7 @@ version <next>:
- AV1 encoding support via librav1e
- AV1 encoding support via librav1e
- AV1 frame merge bitstream filter
- AV1 frame merge bitstream filter
- AV1 Annex B demuxer
- AV1 Annex B demuxer
- axcorrelate filter
version 4.2:
version 4.2:
...
...
doc/filters.texi
View file @
93414ce8
...
@@ -2531,6 +2531,39 @@ ffmpeg -i INPUT -af atrim=end_sample=1000
...
@@ -2531,6 +2531,39 @@ ffmpeg -i INPUT -af atrim=end_sample=1000
@end itemize
@end itemize
@section axcorrelate
Calculate normalized cross-correlation between two input audio streams.
Resulted samples are always between -1 and 1 inclusive.
If result is 1 it means two input samples are highly correlated in that selected segment.
Result 0 means they are not correlated at all.
If result is -1 it means two input samples are out of phase, which means they cancel each
other.
The filter accepts the following options:
@table @option
@item size
Set size of segment over which cross-correlation is calculated.
Default is 256. Allowed range is from 2 to 131072.
@item algo
Set algorithm for cross-correlation. Can be @code{slow} or @code{fast}.
Default is @code{slow}. Fast algorithm assumes mean values over any given segment
are always zero and thus need much less calculations to make.
This is generally not true, but is valid for typical audio streams.
@end table
@subsection Examples
@itemize
@item
Calculate correlation between channels in stereo audio stream:
@example
ffmpeg -i stereo.wav -af channelsplit,axcorrelate=size=1024:algo=fast correlation.wav
@end example
@end itemize
@section bandpass
@section bandpass
Apply a two-pole Butterworth band-pass filter with central
Apply a two-pole Butterworth band-pass filter with central
...
...
libavfilter/Makefile
View file @
93414ce8
...
@@ -88,6 +88,7 @@ OBJS-$(CONFIG_ASTATS_FILTER) += af_astats.o
...
@@ -88,6 +88,7 @@ OBJS-$(CONFIG_ASTATS_FILTER) += af_astats.o
OBJS-$(CONFIG_ASTREAMSELECT_FILTER)
+=
f_streamselect.o
framesync.o
OBJS-$(CONFIG_ASTREAMSELECT_FILTER)
+=
f_streamselect.o
framesync.o
OBJS-$(CONFIG_ATEMPO_FILTER)
+=
af_atempo.o
OBJS-$(CONFIG_ATEMPO_FILTER)
+=
af_atempo.o
OBJS-$(CONFIG_ATRIM_FILTER)
+=
trim.o
OBJS-$(CONFIG_ATRIM_FILTER)
+=
trim.o
OBJS-$(CONFIG_AXCORRELATE_FILTER)
+=
af_axcorrelate.o
OBJS-$(CONFIG_AZMQ_FILTER)
+=
f_zmq.o
OBJS-$(CONFIG_AZMQ_FILTER)
+=
f_zmq.o
OBJS-$(CONFIG_BANDPASS_FILTER)
+=
af_biquads.o
OBJS-$(CONFIG_BANDPASS_FILTER)
+=
af_biquads.o
OBJS-$(CONFIG_BANDREJECT_FILTER)
+=
af_biquads.o
OBJS-$(CONFIG_BANDREJECT_FILTER)
+=
af_biquads.o
...
...
libavfilter/af_axcorrelate.c
0 → 100644
View file @
93414ce8
This diff is collapsed.
Click to expand it.
libavfilter/allfilters.c
View file @
93414ce8
...
@@ -81,6 +81,7 @@ extern AVFilter ff_af_astats;
...
@@ -81,6 +81,7 @@ extern AVFilter ff_af_astats;
extern
AVFilter
ff_af_astreamselect
;
extern
AVFilter
ff_af_astreamselect
;
extern
AVFilter
ff_af_atempo
;
extern
AVFilter
ff_af_atempo
;
extern
AVFilter
ff_af_atrim
;
extern
AVFilter
ff_af_atrim
;
extern
AVFilter
ff_af_axcorrelate
;
extern
AVFilter
ff_af_azmq
;
extern
AVFilter
ff_af_azmq
;
extern
AVFilter
ff_af_bandpass
;
extern
AVFilter
ff_af_bandpass
;
extern
AVFilter
ff_af_bandreject
;
extern
AVFilter
ff_af_bandreject
;
...
...
libavfilter/version.h
View file @
93414ce8
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR 6
6
#define LIBAVFILTER_VERSION_MINOR 6
7
#define LIBAVFILTER_VERSION_MICRO 100
#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