Normalise MP3 Files
~1 min read

Categories

  • raspberrypi

I have hundreds for MP3 files but the levels aren’t standardised in any way which makes streaming them a bit hit and miss. I can normalise them using AudaCity but I’d really like an automatic way of doing it.

Install MP3GAIN

apt install mp3gain

It doesn’t seem to run for some reason as it can’t find the library.

==617==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.

Set LD_PRELOAD

export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libasan.so.4

Now it works!

mp3gain -e -c -r *.mp3