Amarok ReplayGain script Homepage
Hello all. Here you'll find the Amarok replaygain script and some of the needed utilities packaged by myself for your convenience.
This space is provided by my ISP, so unfortunately it may be quite volatile, and the space is only 5 MB. This means that I can't put here everything I'd want, and you'll have to take care of yourself getting all the needed utilities. Hopefully most of them will be provided by your distro or software repositories.
Amarok is a great player for the KDE desktop, but due to dependence on external projects, it may lack some features. One of such features is the ability to normalize the sound among different songs, so all sound equally loud and you don't have to adjust the volume slider on each song change.
But thanks to the clever Amarok's scripting extension, I have been able to build this much desired functionality in a python script.
This script depends on several external utilities for two tasks:
- The volume adjustment to the reference level must have been calculated and stored in tags into the file. This is usually done running by hand the corresponding utility on your song files.
- Reading the stored tags
- vorbis ogg: needs vorbis-tools (uses vorbiscomment)
- mp3: needs mp3gain or aacgain
- aac (mp4/m4a): needs aacgain
- flac: needs flac (uses metaflac)
- musepack (mpc): needs musepack utilities (uses replaygain)
So, for full support you'll need the following external utilities or packages:
- vorbis-tools: to read tags on vorbis ogg files. This is likely a standard package on your distribution
- flac: to read tags on flac files. This is likely a standard package on your distribution
- vorbisgain: to apply replaygain tags on vorbis ogg files
- aacgain: to apply and read replaygain tags on mp4/m4a aac files (works for mp3 too)
- mp3gain: to apply and read replaygain tags on mp3 files. Not needed if you have aacgain
- replaygain: to apply and read replaygain info on mpc (musepack) files.
HowTo replaygain your entire collection
Vorbis ogg:vorbisgain -arfs *
mp3 (using mp3gain):
find -type d -exec sh -c "mp3gain \"{}\"/*.mp3" \;
mp4 and mp3:
find -type d -exec sh -c "mp3gain \"{}\"/*.mp3" \;
mpc:
find -type d -exec sh -c "mp3gain \"{}\"/*.mpc" \;
flac: just use the --replay-gain option when encoding
Downloads and links
The latest amarok replaygain script (at kde-apps.org):
replaygain.amarokscript.tar.bz2
My utility packages:
| aacgain-1.5-static.tgz | aacgain binary statically linked, works on any distribution |
| aacgain-1.5.tar.bz2 | aacgain source package |
| aacgain-1.5-suse10.0-1.i586.rpm | aacgain binary rpm built on SuSE 10.0 |
| aacgain-1.5-1.src.rpm | aacgain source rpm for any rpm based distro |
| vorbisgain-0.34-suse91.1.i586.rpm | vorbisgain binary rpm built on SuSE 9.1 |
| vorbisgain-0.34-suse91.1.src.rpm | vorbisgain source rpm |
Note: I have done all binary and source packaging for aacgain. If they don't build for you, please tell me.
Links:
Guru sound packages for SuSE, has mp3gain and vorbisgain
Packman musepack packages for SuSE
Replaygain binary from musepack homepage
Contact
Miguel Angel <maacruz at gmail dot com>




