9951 explained code solutions for 126 technologies

ffmpegHow to normalize audio volume

To normalize automatically, use awesome ffmpeg-normalize tool. In order to normalize with native ffmpeg, you first need to detect volume detect mean and max volumes and then increase/decrease volume based on those values:

ffmpeg -i in.mp3 -filter:a volumedetect -f null /dev/null
ffmpeg -i in.mp3 -filter:a "volume=10dB" out.mp3ctrl + c
-i in.mp3

input MP3 file


applies specified audio filter


detect mean and max audio volume for given file


change volume level by specified amount


increase volume by 10dB


resulting file