diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-07-23 22:13:17 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-07-26 21:54:13 +0000 |
commit | 4a2836eaf33b64512678ed6dc1387f8f042cf387 (patch) | |
tree | 4345e6e8eddbf4227e603c01349e6d328fe8ca5e /doc/filters.texi | |
parent | 0b6f092ed31b83e01e980b596ef8bdd9db6cfff6 (diff) | |
download | ffmpeg-4a2836eaf33b64512678ed6dc1387f8f042cf387.tar.gz |
avfilter: add acrossfade filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index f6380c9997..4c4beea8eb 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -318,6 +318,54 @@ build. 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 Delay one or more audio channels. @@ -469,6 +517,7 @@ aeval=val(0)|-val(1) @end example @end itemize +@anchor{afade} @section afade Apply fade-in/out effect to input audio. |