Changes between Version 2 and Version 3 of How to change audio volume up-down with FFmpeg


Ignore:
Timestamp:
Aug 4, 2017, 2:04:49 PM (3 weeks ago)
Author:
slhck
Comment:

redirect to page with nicer URL

Legend:

Unmodified
Added
Removed
Modified
  • How to change audio volume up-down with FFmpeg

    v2 v3  
    1 To turn the audio volume up or down, you may use FFmpeg's Audio Filter named [http://ffmpeg.org/ffmpeg.html#volume volume], like in the following example. 
    2 If we want our volume to be half of the input volume: 
    3 {{{ 
    4 ffmpeg -i input.wav -af "volume=0.5" output.wav 
    5 }}} 
    6 150% of current volume: 
    7 {{{ 
    8 ffmpeg -i input.wav -af "volume=1.5" output.wav 
    9 }}} 
    10  
    11 If you are familiar with decibels you can also use '''dB:''' 
    12 {{{ 
    13 ffmpeg -i input.wav -af "volume=10dB" output.wav 
    14 }}} 
    15 ---- 
    16  
    17 In older versions of FFmpeg, the option "-af" wasn't implemented, so we had to use this: 
    18 {{{ 
    19 ffmpeg -f lavfi -i "amovie=input.wav,volume=0.5" output.wav 
    20 }}} 
    21  
    22 More info here: http://ffmpeg.org/trac/ffmpeg/ticket/720 
     1See [[AudioVolume]]