diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2022-08-09 10:16:50 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2022-08-09 10:16:50 +0530 |
commit | baf1f5dfb28514eb680273e21f2c8568bf68f278 (patch) | |
tree | c6f88cd1fc7a00cc5ec5f07a7c6216b003377149 /doc | |
parent | 98b32ef462ba344b99034f7f85c2d66cfd7f0055 (diff) | |
download | ffmpeg-baf1f5dfb28514eb680273e21f2c8568bf68f278.tar.gz |
doc/filters: add examples for amix to subsection
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index dd7ee1394a..fd894bcaf1 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -2210,13 +2210,6 @@ and @var{pan} audio filters support many formats). If the @var{amix} input has integer samples then @ref{aresample} will be automatically inserted to perform the conversion to float samples. -For example -@example -ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT -@end example -will mix 3 input audio streams to a single output with the same duration as the -first input and a dropout transition time of 3 seconds. - It accepts the following parameters: @table @option @@ -2252,6 +2245,26 @@ Beware of heavy clipping if inputs are not normalized prior or after filtering by this filter if this option is disabled. By default is enabled. @end table +@subsection Examples + +@itemize + +@item +This will mix 3 input audio streams to a single output with the same duration as the +first input and a dropout transition time of 3 seconds: +@example +ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT +@end example + +@item +This will mix one vocal and one music input audio stream to a single output with the same duration as the +longest input. The music will have quarter the weight as the vocals, and the inputs are not normalized: +@example +ffmpeg -i VOCALS -i MUSIC -filter_complex amix=inputs=2:duration=longest:dropout_transition=0:weights="1 0.25":normalize=0 OUTPUT +@end example + +@end itemize + @subsection Commands This filter supports the following commands: |