diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2011-11-01 21:42:14 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-11-05 02:13:37 +0100 |
commit | 618ac71354cf406a652109a90e6aa5e4e00d9463 (patch) | |
tree | 573d691f9139e997835ec80c003cc5bb6a6ed004 /doc/filters.texi | |
parent | 1fc7077115eb97c4eeeb4ca732cab7e963b3f26f (diff) | |
download | ffmpeg-618ac71354cf406a652109a90e6aa5e4e00d9463.tar.gz |
lavfi: add volume filter
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 0da5702566..d21ddf10dd 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -224,6 +224,56 @@ expressed in the form "[@var{c0} @var{c1} @var{c2} @var{c3} @var{c4} @var{c5} @var{c6} @var{c7}]" @end table +@section volume + +Adjust the input audio volume. + +The filter accepts exactly one parameter @var{vol}, which expresses +how the audio volume will be increased or decresed. + +Output values are clipped to the maximum value. + +If @var{vol} is expressed as a decimal number, and the output audio +volume is given by the relation: +@example +@var{output_volume} = @var{vol} * @var{input_volume} +@end example + +If @var{vol} is expressed as a decimal number followed by the string +"dB", the value represents the requested change in decibels of the +input audio power, and the output audio volume is given by the +relation: +@example +@var{output_volume} = 10^(@var{vol}/20) * @var{input_volume} +@end example + +Otherwise @var{vol} is considered an expression and its evaluated +value is used for computing the output audio volume according to the +first relation. + +Default value for @var{vol} is 1.0. + +@subsection Examples + +@itemize +@item +Half the input audio volume: +@example +volume=0.5 +@end example + +The above example is equivalent to: +@example +volume=1/2 +@end example + +@item +Decrease input audio power by 12 decibels: +@example +volume=-12dB +@end example +@end itemize + @c man end AUDIO FILTERS @chapter Audio Sources |