LOUDGAIN(1) | LOUDGAIN(1) |
loudgain - loudness normalizer based on the EBU R128 standard
loudgain [OPTIONS] FILES...
loudgain is a loudness normalizer that scans music files and calculates loudness-normalized gain and loudness peak values according to the EBU R128 standard, and can optionally write ReplayGain-compatible metadata.
loudgain implements a subset of mp3gain's command-line options, which means that it can be used as a drop-in replacement in some situations.
loudgain will not modify the actual audio data, but instead just write ReplayGain tags if so requested. It is up to the player to interpret these. (In some players, you need to enable this feature.)
loudgain currently supports writing tags to the following file
types:
FLAC (.flac), Ogg (.ogg, .oga, .spx, .opus), MP2 (.mp2), MP3 (.mp3), MP4
(.mp4, .m4a), ASF/WMA (.asf, .wma), WavPack (.wv), APE (.ape).
Experimental, use with care: WAV (.wav), AIFF (.aiff, .aif, .snd).
To give you a head start, here are my personal recommendations for being (almost) universally compatible.
Use loudgain on a »one album per folder« basis; standard RG2 settings but lowercase ReplayGain tags; clipping prevention on; strip obsolete tag types from MP3 and WavPack files; use ID3v2.3 for MP3s; store extended tags:
$ loudgain -a -k -s e *.flac $ loudgain -a -k -s e *.ogg $ loudgain -I3 -S -L -a -k -s e *.mp3 $ loudgain -L -a -k -s e *.m4a $ loudgain -a -k -s e *.opus $ loudgain -L -a -k -s e *.wma $ loudgain -I3 -L -a -k -s e *.wav $ loudgain -I3 -L -a -k -s e *.aiff $ loudgain -S -a -k -s e *.wv $ loudgain -S -a -k -s e *.ape
I've been happy with these settings for many years now. Your mileage may vary.
For easy mass-tagging, there is a bash script called rgbpm included with loudgain, which follows above recommendations. You can make a copy, put that into your personal ~/bin folder and modify it to whatever you need.
loudgain is maintained on GitHub. Please report all bugs to the issue tracker at https://github.com/Moonbase59/loudgain/issues.
Matthias C. Hormann mhormann@gmx.de
Alessandro Ghedini alessandro@ghedini.me
Copyright (C) 2019 Matthias C. Hormann mhormann@gmx.de
(versions > 0.1)
Copyright (C) 2014 Alessandro Ghedini alessandro@ghedini.me (v0.1)
This program is released under the 2 clause BSD license.
September 2019 |