ffmpeg | branch: master | Gyan Doshi <ffm...@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
-@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:

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to