[FFmpeg-cvslog] doc/filters: add examples for amix to subsection

Gyan Doshi git at videolan.org
Tue Aug 9 07:50:23 EEST 2022


ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Tue Aug  9 10:34:50 2022 +0530| [baf1f5dfb28514eb680273e21f2c8568bf68f278] | committer: Gyan Doshi

doc/filters: add examples for amix to subsection

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=baf1f5dfb28514eb680273e21f2c8568bf68f278
---

 doc/filters.texi | 27 ++++++++++++++++++++-------
 1 file 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
- at example
-ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT
- at 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
 
+ at subsection Examples
+
+ at itemize
+
+ at 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:
+ at example
+ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT
+ at end example
+
+ at 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:
+ at example
+ffmpeg -i VOCALS -i MUSIC -filter_complex amix=inputs=2:duration=longest:dropout_transition=0:weights="1 0.25":normalize=0 OUTPUT
+ at end example
+
+ at end itemize
+
 @subsection Commands
 
 This filter supports the following commands:



More information about the ffmpeg-cvslog mailing list