Skip to content

MP3Gain: normalize mp3 volume

2007 June 4
tags: ,
by Philippe Delodder

MP3Gain is an utility to
normalize the volume of mp3 files. It works by figuring out how loud
the music actually sounds to the human ear, and then figuring out how
much positive or negative gain to apply to the mp3 file to “fix” it,
for more information look here. And another good thing about MP3gain is that it doens’t decode and re-encode the mp3 fil, so there is no quality loss.

It’s the first time I’ll use it in Linux with Debian or if you have
Ubuntu it’s the same, but you can use it with any Linux distribution as
long it’s installed ;)

To install it on Debian, Ubuntu do:

apt-get install mp3gain

After the installation of mp3gain you need to go to the folder with
mp3′s or the main folder that holds all you mp3 folders. I use the
command “find” to find all needed mp3 files by looking at the extension
“.mp3″.

find . -type f -iname '*.mp3' -print0 | xargs -0 mp3gain -r -k

This line above finds all the mp3 files and pipes them to mp3gain. The options given with mp3gain are:

  • -r : apply Track gain automatically (all files set to equal loudness)
  • -k : automatically lower Track/Album gain to not clip audio

These options I use if you would like to know more about the possible options you can pass on to mp3gain look at the man page.

For more information regarding MP3Gain look here.

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS

Bad Behavior has blocked 203 access attempts in the last 7 days.