REPLAYGAIN(1)
β¨ replaygain β the single file Replay Gain editor π
okay bestie, so replaygain is the Replay Gain glow-up tool for one file at a time (its man page name in the manual is REPLAYGAIN(1), section 1, iykyk). let's get into it π
πΈ NAME πΈ
replaygain β single file Replay Gain editor. literally what it says on the tin, no cap.
π¦ SYNOPSIS π¦
replaygain [options] AUDIO_FILE [AUDIO_FILE ...]
replaygain --help
replaygain --version
like, give it some audio files, or just ask it for help or its version. simple as. β¨
π DESCRIPTION π
replaygain applies or displays Replay Gain information for audio files. that's the whole vibe.
by default, all the files you hand it get assumed to be part of a single album, and album gain data gets calculated for them. so if you were hoping they'd be treated as separate lil solo tracks, bestie, you gotta say so. π«Ά
π OPTIONS π
--versionβ shows you the version of the software. cute lil flex.-h,--helpβ prints a short documentation. the quick rundown, the TL;DR.-f,--forceβ recalculates Replay Gain even if the file already has gain info in it. like, yes, we're redoing this, don't fight it. πͺ-d,--dry-runβ doesn't actually modify any files. it's giving "we're just looking, we're not touching". π-r REF,--reference-loudness=REFβ sets the reference loudness toREFdB (default:89 dB). that's the target volume everything gets normalized toward.--mp3-format=MP3_FORMATβ chooses the Replay Gain data format for MP3 files. the default setting should play nice with most decent software music players, so honestly you generally do not need to mess with this one. see below for the whole saga. π--no-albumβ don't write any album gain information. track-only era, I guess.--showβ don't calculate anything, just show the Replay Gain information for the files you specified. in this mode, every option other than--mp3-formatgets ignored. periodt.
π₯ MP3 FORMATS π₯
ngl, proper Replay Gain support for MP3 files is a bit of a mess. let me explain the whole situation.
on one hand, there's the mp3gain application [1], which was relatively widely used (the author of this man page doesn't know if it still is π) β it directly modifies the audio data. the upside: it works with pretty much any player. the downside: you have to decide ahead of time whether you want track gain or album gain. also it's just not very elegant. π
on the other hand, there are at least two commonly used ways to store proper Replay Gain information in ID3v2 tags [2]. so yeah, two camps, one mess.
now, in general you don't have to worry about any of this when using this package: by default, replaygain and collectiongain will read and write Replay Gain information in the two most commonly used formats. easy. BUT β if for whatever reason you need more control over the MP3 Replay Gain information, you can use the --mp3-format option (supported by both programs) to change the behaviour. here are the possible choices for that switch:
replaygain.org(alias:fb2k) β Replay Gain information is stored in ID3v2TXXXframes. this format is specified on the replaygain.org website as the recommended format for MP3 files. notably, it's also the format used by the foobar2000 music player for Windows [3]. main character format fr.legacy(alias:ql) β Replay Gain information is stored in ID3v2.4RVA2frames. replaygain.org describes this one as "legacy"; however, it's still the primary format for at least the Quod Libet music player [4], and possibly others.
β οΈ heads up: this format does not support volume adjustments of more than64 dB. if the calculated gain value is smaller than-64 dBor greater than or equal to+64 dB, it gets clamped to those limit values. so extreme gains get flattened, no cap.
defaultβ this is the default implementation used by bothreplaygainandcollectiongain. when writing Replay Gain data, both thereplaygain.orgformat and thelegacyformat get written. as for reading: if a file contains data in both formats, both data sets get read and then compared. if they match up, that Replay Gain information is returned for the file. however, if they don't match, no Replay Gain data is returned β which is the signal that this file does not contain valid (read: consistent) Replay Gain information. trust issues, honestly. π
the sources, for the record:
- [1]
http://mp3gain.sourceforce.net - [2]
http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_specification#ID3v2 - [3]
http://foobar2000.org - [4]
http://code.google.com/p/quodlibet
π SEE ALSO π
collectiongain(1)β the album-sized sibling, go say hi π«Ά
k that's the whole page bestie, you're officially a Replay Gain girlie now πβ¨
this was version 1.1.1 of the manual page, dated like the classic REPLAYGAIN(1) footer era, and it lives in the rgain section of the manual. mwah, go normalize something. π
π
π¦ where this page comes from
- ubuntu jammy: replaygain 1.1.1-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms