Glam Prestige Journal

Bright entertainment trends with youth appeal.

I use a really useful tool called r128gain which performs loudness normalisation on audio files. Under 17.10, however, I get the following error however...

Failed opening "/home/Downloads/r128gain-1.0.11-linux64-gtk3/r128gain-tools/libsox.so.2".
Error loading SoX.

Can anybody shed any light on this for me, I would love to get it working again? Thank you!

0

2 Answers

It seems the tool is missing the soxinstallation

sudo apt-get install sox

should fix it


Edit: Installing alone did not fix it, you have to tell r128gain where to look for the sox library

mv /home/username/r128gain-1.0.11-linux64-gtk3/r128gain-tools/libsox.so.2 /home/username/r128gain-1.0.11-linux64-gtk3/r128gain-tools/libsox.so.2_backup
ln -s /usr/lib/x86_64-linux-gnu/libsox.so.2 /home/username/r128gain-1.0.11-linux64-gtk3/r128gain-tools/libsox.so.2

Then it works

./r128gain /usr/share/sounds/alsa/Noise.wavSoX sucessfully loaded.
FFmpeg sucessfully loaded.
analyzing ... [1/1] "Noise.wav": -29.7 LUFS (6.7 LU) peak: -17.9 TPFS, range: 0.0 LU [ALBUM]: -29.7 LUFS (6.7 LU) peak: -17.9 TPFS, range: 0.0 LU
done.

SoX executable in r128gain-1.0.11-linux64-gtk3/r128gain-tools depends on libpng12 (not exist in modern Ubuntu), so we need to install it manually:

wget
sudo dpkg -i libpng12-0_1.2.49-1+deb7u2_amd64.deb

After this it works:

artful@artful:~/Downloads/r128gain-1.0.11-linux64-gtk3$ ./r128gain /usr/share/sounds/alsa/Noise.wav SoX sucessfully loaded.
FFmpeg sucessfully loaded.
analyzing ... [1/1] "Noise.wav": -29.7 LUFS (6.7 LU) peak: -17.9 TPFS, range: 0.0 LU [ALBUM]: -29.7 LUFS (6.7 LU) peak: -17.9 TPFS, range: 0.0 LU
done.
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy