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
4a2836ea
Commit
4a2836ea
authored
Jul 23, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add acrossfade filter
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
0b6f092e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
462 additions
and
57 deletions
+462
-57
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+49
-0
Makefile
libavfilter/Makefile
+1
-0
af_afade.c
libavfilter/af_afade.c
+409
-56
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+1
-1
No files found.
Changelog
View file @
4a2836ea
...
@@ -26,6 +26,7 @@ version <next>:
...
@@ -26,6 +26,7 @@ version <next>:
- AAC fixed-point decoding
- AAC fixed-point decoding
- sidechaincompress audio filter
- sidechaincompress audio filter
- bitstream filter for converting HEVC from MP4 to Annex B
- bitstream filter for converting HEVC from MP4 to Annex B
- acrossfade audio filter
version 2.7:
version 2.7:
...
...
doc/filters.texi
View file @
4a2836ea
...
@@ -318,6 +318,54 @@ build.
...
@@ -318,6 +318,54 @@ build.
Below is a description of the currently available audio filters.
Below is a description of the currently available audio filters.
@section acrossfade
Apply cross fade from one input audio stream to another input audio stream.
The cross fade is applied for specified duration near the end of first stream.
The filter accepts the following options:
@table @option
@item nb_samples, ns
Specify the number of samples for which the cross fade effect has to last.
At the end of the cross fade effect the first input audio will be completely
silent. Default is 44100.
@item duration, d
Specify the duration of the cross fade effect. See
@ref{time duration syntax,,the Time duration section in the ffmpeg-utils(1) manual,ffmpeg-utils}
for the accepted syntax.
By default the duration is determined by @var{nb_samples}.
If set this option is used instead of @var{nb_samples}.
@item overlap, o
Should first stream end overlap with second stream start. Default is enabled.
@item curve1
Set curve for cross fade transition for first stream.
@item curve2
Set curve for cross fade transition for second stream.
For description of available curve types see @ref{afade} filter description.
@end table
@subsection Examples
@itemize
@item
Cross fade from one input to another:
@example
ffmpeg -i first.flac -i second.flac -filter_complex acrossfade=d=10:c1=exp:c2=exp output.flac
@end example
@item
Cross fade from one input to another but without overlapping:
@example
ffmpeg -i first.flac -i second.flac -filter_complex acrossfade=d=10:o=0:c1=exp:c2=exp output.flac
@end example
@end itemize
@section adelay
@section adelay
Delay one or more audio channels.
Delay one or more audio channels.
...
@@ -469,6 +517,7 @@ aeval=val(0)|-val(1)
...
@@ -469,6 +517,7 @@ aeval=val(0)|-val(1)
@end example
@end example
@end itemize
@end itemize
@anchor{afade}
@section afade
@section afade
Apply fade-in/out effect to input audio.
Apply fade-in/out effect to input audio.
...
...
libavfilter/Makefile
View file @
4a2836ea
...
@@ -29,6 +29,7 @@ OBJS = allfilters.o \
...
@@ -29,6 +29,7 @@ OBJS = allfilters.o \
OBJS-$(CONFIG_AVCODEC)
+=
avcodec.o
OBJS-$(CONFIG_AVCODEC)
+=
avcodec.o
OBJS-$(CONFIG_ACROSSFADE_FILTER)
+=
af_afade.o
OBJS-$(CONFIG_ADELAY_FILTER)
+=
af_adelay.o
OBJS-$(CONFIG_ADELAY_FILTER)
+=
af_adelay.o
OBJS-$(CONFIG_AECHO_FILTER)
+=
af_aecho.o
OBJS-$(CONFIG_AECHO_FILTER)
+=
af_aecho.o
OBJS-$(CONFIG_AEVAL_FILTER)
+=
aeval.o
OBJS-$(CONFIG_AEVAL_FILTER)
+=
aeval.o
...
...
libavfilter/af_afade.c
View file @
4a2836ea
This diff is collapsed.
Click to expand it.
libavfilter/allfilters.c
View file @
4a2836ea
...
@@ -45,6 +45,7 @@ void avfilter_register_all(void)
...
@@ -45,6 +45,7 @@ void avfilter_register_all(void)
return
;
return
;
initialized
=
1
;
initialized
=
1
;
REGISTER_FILTER
(
ACROSSFADE
,
acrossfade
,
af
);
REGISTER_FILTER
(
ADELAY
,
adelay
,
af
);
REGISTER_FILTER
(
ADELAY
,
adelay
,
af
);
REGISTER_FILTER
(
AECHO
,
aecho
,
af
);
REGISTER_FILTER
(
AECHO
,
aecho
,
af
);
REGISTER_FILTER
(
AEVAL
,
aeval
,
af
);
REGISTER_FILTER
(
AEVAL
,
aeval
,
af
);
...
...
libavfilter/version.h
View file @
4a2836ea
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 5
#define LIBAVFILTER_VERSION_MAJOR 5
#define LIBAVFILTER_VERSION_MINOR
29
#define LIBAVFILTER_VERSION_MINOR
30
#define LIBAVFILTER_VERSION_MICRO 100
#define LIBAVFILTER_VERSION_MICRO 100
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
#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