“Level out” the volume of our MP3 library with MP3Gain

Published by TheJoe on

Estimated reading time: < 1 minute


This article was published more than a year ago, there may have been developments.
Please take this into account.

With the brief advice today we talk about music, or rather how to simplify a perennial problem of those who have a wide libreria MP3 in which each track is ripped to a different volume.

How many times has it happened to put our MP3 player playing and having random every time tinkering with the volume because a song “save“, and the other does not feel? The solution is, and is called MP3Gain. MP3Gain is a program open source whose sole purpose is leveling (the technical term is correct “normalize“) the output volume of an audio file. The interesting feature of MP3Gain is that it reduces or increases the volume of MP3s files without losing quality. In practice does not compress the file a second time (MP3 is a compressed format), but analyzes the spectrum of file, and alters a small part so as to increase or decrease the volume.

MP3Gain oggi, in addition to being a very known, is easy to use (despite the command line), and were also created for GUI for a more intuitive use (JavaMP3Gain, qtGain, etc..). The program is present in the main repository, and to install it we can launch our manager download, or by using the terminal under Debian, Ubuntu and derived simply run the usual command:

sudo apt-get install mp3gain

To RedHat, Fedora e derivate, instead we will launch:

sudo yum -y install mp3gain

Despite the GUI I think the command line infinitely faster. To adjust the volume of all the files in a directory simply navigate to the directory with the terminal and run this command:

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

All will be normalized to an MP3 optimum volume (enough so that the speakers of the computer does not gracchino).


I keep this blog as a hobby by 2009. I am passionate about graphic, technology, software Open Source. Among my articles will be easy to find music, and some personal thoughts, but I prefer the direct line of the blog mainly to technology. For more information contact me.


Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.