2808 explained code solutions for 75 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

-filter:a

applies specified audio filter

volumedetect

detect mean and max audio volume for given file

volume=

change volume level by specified amount

10dB

increase volume by 10dB

out.mp3

resulting file