

then calculate the required offset, and use the volume filter as shown above. Read the output values from the command line log: To normalize the volume to a given peak or RMS level, the file first has to be analyzed using the volumedetect filter:įfmpeg -i input.wav -filter:a volumedetect -f null /dev/null To set or otherwise normalize the volume of a stream, see the sections below. Note that the volume filter only adjusts the volume. To reduce the volume, use a negative value:įfmpeg -i input.wav -filter:a "volume=-5dB" output.wav

To increase the volume by 10dB:įfmpeg -i input.wav -filter:a "volume=10dB" output.wav If we want our volume to be half of the input volume:įfmpeg -i input.wav -filter:a "volume=0.5" output.wavįfmpeg -i input.wav -filter:a "volume=1.5" output.wav To change the audio volume, you may use FFmpeg's volume audio filter. Audio Volume Manipulation Changing volume
