LOUDGAIN(1)
π LOUDGAIN π
okay bestie, welcome to the loudgain(1) manual β she's a loudness normalizer based on the EBU R128 standard, and she is so good at her job, you're gonna be obsessed. π
β¨ SYNOPSIS β¨
loudgain [OPTIONS] FILES...
πΈ DESCRIPTION πΈ
so like, loudgain is a loudness normalizer π . she scans your music files and calculates loudness-normalized gain and loudness peak values according to the EBU R128 standard, and if you ask nicely she can also write ReplayGain-compatible metadata. no cap. β¨
here's the tea though: loudgain implements a subset of mp3gain's command-line options, which means it can lowkey be used as a drop-in replacement in some situations. slay. π«Ά
and listen β loudgain will not modify the actual audio data. she's not that kind of girl. she just writes ReplayGain tags if you request it, and it's up to the player to interpret them. (heads up: in some players you actually have to enable this feature, so check your settings, bestie. π)
right now, loudgain supports writing tags to these 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).
π OPTIONS π
-h,--helpβ show this help, bestie. π₯°-v,--versionβ show the version number. β-r,--trackβ calculate track gain only (this is the default, periodt).-a,--albumβ calculate album gain (and track gain too, obviously π ).-c,--clipβ ignore clipping warnings. living dangerously, iconic.-k,--noclipβ lower the track/album gain so we avoid clipping (<= -1 dBTP).-K n,--maxtpl=nβ avoid clipping; max. true peak level = n dBTP.-d n,--pregain=nβ apply n dB/LU pre-gain value (-5for a-23 LUFStarget, iykyk).-s d,--tagmode=dβ delete ReplayGain tags from files. bye bye tags π-s i,--tagmode=iβ write ReplayGain 2.0 tags to files. the deets:ID3v2for MP2, MP3, WAV and AIFF;Vorbis Commentsfor FLAC, Ogg, Speex and Opus;iTunes-type metadata for MP4/M4A;WMAtags for ASF/WMA;APEv2tags for WavPack. β¨-s e,--tagmode=eβ like-s i, plus extra tags (reference, ranges). extra. extra. π-s l,--tagmode=lβ like-s e, but with LU units instead of dB. π-s s,--tagmode=sβ don't write ReplayGain tags at all (this is the default).-L,--lowercaseβ force lowercase'REPLAYGAIN_*'tags (MP2/MP3/MP4/ASF/WMA/WAV/AIFF only). this is non-standard, but sometimes you just need it, fr fr.-S,--striptagsβ strip tag types other thanID3v2from MP2/MP3 files (i.e.ID3v1,APEv2). and strip tag types other thanAPEv2from WavPack/APE files (i.e.ID3v1). clean girl aesthetic π§-I 3,--id3v2version=3β writeID3v2.3tags to MP2/MP3/WAV files.-I 4,--id3v2version=4β writeID3v2.4tags to MP2/MP3/WAV files (this one's the default).-o,--outputβ database-friendly tab-delimited list output (mp3gain-compatible). ποΈ-O,--output-newβ database-friendly new format tab-delimited list output. ideal for analysis of files if you redirect it to a CSV file. π-q,--quietβ don't print scanning status messages. shhh. π€«
π RECOMMENDATIONS π
to give you a head start, here are the author's 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
they've been happy with these settings for many years now. your mileage may vary, bestie. π
for easy mass-tagging, there's a bash script called rgbpm included with loudgain, which follows the recommendations above. you can make a copy, put that into your personal ~/bin folder and modify it to whatever you need. main character energy tbh. π¦
π BUGS π
loudgain is maintained on GitHub. please report all bugs to the issue tracker at:
https://github.com/Moonbase59/loudgain/issues
π AUTHORS π
- Matthias C. Hormann
mhormann@gmx.de - Alessandro Ghedini
alessandro@ghedini.me
β COPYRIGHT β
- 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. π
and that's the whole page, bestie β this little beauty's been hanging around since September 2019 (that's the date on the footer), and yeah, she's loudgain(1), source and all. go normalize something. slay. π β¨
π¦ where this page comes from
- debian bookworm: loudgain 0.6.8+ds-3+b1 Β· BSD-2-Clause
- debian trixie: loudgain 0.6.8+ds-6+b1 Β· BSD-2-Clause
- ubuntu jammy: loudgain 0.6.8+ds-3 Β· BSD-2-Clause
- ubuntu noble: loudgain 0.6.8+ds-3build2 Β· BSD-2-Clause
- ubuntu questing: loudgain 0.6.8+ds-6build1
- ubuntu resolute: loudgain 0.6.8+ds-8build1 Β· BSD-2-Clause
- ubuntu stonking: loudgain 0.6.8+ds-8build1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms