ReplayGain is a proposed standard published by David Robinson in 2001 to measure the perceived loudness of audio in computer audio formats such as MP3 and Ogg Vorbis. It allows media players to normalize loudness for individual tracks or albums. This avoids the common problem of having to manually adjust volume levels between tracks when playing audio files from albums that have been mastered at different loudness levels.
ReplayGain works by first performing a psychoacoustic analysis of an entire audio track or album to measure peak levels and perceived loudness. The difference between the measured perceived loudness and the desired target loudness is calculated; this is considered the ideal replay gain value. Typically, the gain and peaks values are then stored as metadata in the audio file, allowing ReplayGain-capable audio players to automatically attenuate or amplify the signal on a per-track or per-album basis such that tracks or albums play at a similar loudness level. The peak information can be used to prevent gain adjustments from inducing clipping in the playback device.
The original ReplayGain proposal specified an 8-byte field in the header of any file. Most implementations now use tags for ReplayGain information. FLAC and Ogg Vorbis use the
REPLAYGAIN_* Vorbis comment fields. MP3 files usually use ID3v2. Other formats such as AAC and WMA use their native tag formats with a specially formatted tag entry listing the track's replay gain and peak loudness.
ReplayGain utilities usually add metadata to the audio files without altering the original audio data. Alternatively, a tool can amplify or attenuate the data itself and save the result to another, gain-adjusted audio file; this is not perfectly reversible in most cases. Some lossy audio formats, such as MP3, are structured in a way that they encode the volume of each compressed frame in a stream, and tools such as MP3Gain take advantage of this for directly applying the gain adjustment to MP3 files, adding undo information so that the process is reversible.
A more common means of specifying a reference level is relative to a full-scale signal. ReplayGain nominally plays at -14 dB relative to full-scale leaving 14 dB of headroom for reproduction of dynamic material. In contrast, the SMPTE RP 200:2002, on which the ReplayGain reference was originally based, recommends 20 dB of headroom. The more recent EBU Recommendation R 128 suggests 23 dB.
Track-gain and album-gain
ReplayGain analysis can be performed on individual tracks, so that all tracks will be of equal volume on playback. Analysis can also be performed on a per-album basis. In album-gain analysis an additional peak-value and gain-value, which will be shared by the whole album, is calculated. Using the album-gain values during playback will preserve the volume differences among tracks on an album.
On playback, listeners may decide if they want all tracks to sound equally loud or if they want all albums to sound equally loud with different tracks having different loudness. In album-gain mode, when album-gain data is missing, players should use track-gain data instead.
- Peak amplitude is not a reliable indicator of loudness, so consequently peak normalization does not offer reliable normalization of perceived loudness. RMS normalization is a little more accurate, but care must be taken not to introduce clipping, either by guaranteeing appropriate headroom or by using hard or soft limiting. (ReplayGain itself is an elaboration on RMS normalization.)
- With audio level compression, volume may be altered on-the-fly on playback (meaning "variable gain", as opposed to the "constant gain" as rendered by ReplayGain), but the dynamic range will be compressed. Although this is beneficial in keeping volume constant at all times, it is not always desirable.
- Sound Check is a proprietary Apple Inc. technology similar in function to ReplayGain. It is available in iTunes and on the iPod.
- Standard measurement algorithms for broadcast loudness monitoring applications have recently been developed by the International Telecommunication Union (ITU-R BS.1770) and the European Broadcasting Union (EBU R128).
This section may require cleanup to meet Wikipedia's quality standards. The specific problem is: It is not specified whether each of these computer programs or devices are capable of adding ReplayGain data or can just read the existing. AIMP, VLC media player can only read. MediaMonkey, Quod Libet can also write (December 2014) (Learn how and when to remove this template message)
- AIMP, Windows
- Amarok, KDE desktop environment. Native ReplayGain support was added in Amarok 2.1.
- Audacious, Unix-like systems and Windows
- Aqualung Music Player, Linux and Windows
- Banshee, Linux
- Clementine, Windows, Mac OS X and Linux
- cmus, Unix-like systems
- Cue Broadcast Audio Player, Windows[not in citation given]
- DeaDBeeF, GNU/Linux, *BSD, OpenSolaris and Mac OS X
- Exaile, Linux/GNOME desktop environment
- FLAC, the reference FLAC decoder can create a new copy with ReplayGain applied, through the undocumented option
--apply-replaygain-which-is-not-losslessas of version 1.1.1
- foobar2000, Windows
- GMusicBrowser, Linux/GNOME
- hunisPRO automation system, Windows
- JRiver Media Center, Windows[not in citation given]
- JavaTunes, Windows, Linux and Mac OS X
- Kodi, cross-platform
- MediaMonkey, Windows
- Mixxx virtual DJ software, v1.9.0 and up
- madplay, Unix-like systems
- Mpg123, supported for only Xing/Lame/Info header
- MPD, Unix-like systems
- Muine, GNOME desktop environment
- MusicBee, Windows
- Nightingale, Linux, Mac OS X, Windows
- Play, Mac OS X
- Pocket Player, Windows Mobile, through the ReplayGain DSP plugin
- ProppFrexx ONAIR, Windows
- Pulsar+, Android
- Qmmp, cross-platform
- Quod Libet, Unix-like systems. Reads ReplayGain metadata natively. Has a plugin to analyze and write ReplayGain information.
- QuuxPlayer, Windows
- RadioBOSS, Windows radio automation software
- Rhythmbox, GNOME (through a plug-in)
- Songbird, Windows and Mac OS X
- SoX, cross-platform
- Squeezebox hardware and accompanying SlimServer/SqueezeCenter software from Slim Devices
- VLC media player, multiplatform. Reads ReplayGain metadata natively
- Winamp, Windows
- XMMS, Unix-like systems with X11. Supports ReplayGain for Vorbis; for MP3 files, a patched version of the xmms-mad plugin which only supports APEv2 is available)
- XMMS2, Unix-like systems
- XMPlay, Windows
- Zortam Mp3 Media Studio, Windows
Portable media players
- All devices with a working Rockbox port
- Sandisk Sansa Fuze and Sansa Clip+
- iPod through other programs that convert ReplayGain data to the Apple proprietary Sound Check format (e.g. iPod Manager for foobar2000, other alternatives elsewhere on this page)
Typical CD players and other legacy audio players do not support ReplayGain.
Android compatible players
- foobar2000 for Android
- GoneMAD Music Player
- Neutron Music Player
- Vanilla Music
- Winamp PRO for Android
- XenoAmp Music Player
- beaTunes: Writes the standard
replaygain_track_gain/replaygain_track_peaktags and replaces the
iTunNORMmetadata tag value, which is used by iTunes software and iPod music players for Sound Check volume normalization.
- Ex Falso: Included plugin scans files on a per-album base, writes the standard tags into metadata.
- EZ CD Converter: CD ripper and metadata converter.
- FLAC and metaflac: Encoder can optionally generate metadata. Tagger generates metadata.
- foobar2000: Generates metadata through included plugin using EBU R128 (but at old 89dB levels) for all supported tag formats.
- iVolume: Replaces the
iTunNORMmetadata tag value (optionally on a per-album basis), which is used by iTunes software and iPod music players for Sound Check volume normalization.
- LAME: Encoder writes metadata to LAME tag
- MediaMonkey: Analyze Volume calculates RG values and writes them into the files as tags and into its library database
- MP3Gain: (open source) generates metadata. Can directly modify original file and write undo information as metadata.
- QuuxPlayer for Windows: calculates gain values and saves them in its library database; optionally writes ReplayGain tags to files with ID3v2 tags.
- Quod Libet: Based on Ex Falso. Generates metadata through included plugin to analyze and write ReplayGain information
- Rapid Evolution: Generates metadata
- soundKonverter: frontend for various audio conversion tools. Is built using KDE Development Platform and has a ReplayGain tool.
- Winamp: Generates metadata
- rgain: Generates metadata
- Sound Normalizer
- Although the original proposal specified an 83 dB SPL reference, an early departure from the proposal to 89 dB SPL was endorsed by its author.
- Specifically SMPTE RP 200:2002 recommends an 83 dB SPL plaback level for pink noise recorded at -20 dB with respect to a full-scale sine wave. ReplayGain uses -14dB headroom and therefore has a reference 6dB higher than the SMPTE spec.
- David Robinson (2010-12-17). "ReplayGain Specification discussion". Hydrogenaudio. Retrieved 2011-07-12.
- "ReplayGain specification". Retrieved 2011-04-15.
- "Does Replay gain work differtly in Media monkey". Hydrogenaudio. 2010-10-07. Retrieved 2010-12-30.
- Leslie, Rob (24 February 2004). "Replay Gain". mad-dev mailing list. mars.org. Retrieved 2007-03-10.
- "ReplayGain specification". Retrieved September 13, 2011.
- EBU (August 2011). "Loudness normalisation and permitted maximum level of audio signals" (PDF).
- Sam Costello. "Using Sound Check with iPod". About.com. Retrieved 2010-05-11.
- "Bug 81661 - Volume normalization for amaroK". KDE Bug Tracking System. 2004-05-16. Retrieved 2010-12-30.
- "Amarok 2.1 – back to the future". Padoca. 2009-02-15. Retrieved 2010-12-30.
- "Amarok 2.1 "Let There Be Light" released". Amarok. 2009-06-03. Retrieved 2010-12-30.
- "GASTEROPOD". Archived from the original on January 29, 2009. Retrieved November 26, 2008.
- "DeaDBeeF - Ultimate Music Player For GNU/Linux". Deadbeef.sourceforge.net. Retrieved 2016-07-29.
- "Does FLAC.exe decode support ReplayGain?". Hydrogenaudio. 2004-01-07. Retrieved 2010-12-30.
- "gmusicbrowser". Squentin.free.fr. Retrieved 2011-11-24.
- "Media Center". Archived from the original on April 3, 2005. Retrieved January 7, 2006.
- "JavaTunes". Stigc.dk. 2011-05-15. Retrieved 2011-11-24.
- "Play". sbooth.org. Retrieved 2011-11-24.
- "Pocket Player 4". Conduits. Retrieved 2011-11-24.
- "Pocket Player Plugins & Software Development Kit (SDK)". Conduits. Retrieved 2011-11-24.
- "ProppFrexx ONAIR". Proppfrexx.radio42.com. Retrieved 2011-11-24.
- "Qmmp Features". Retrieved 2017-12-22.
- "RadioBOSS Web Site". djsoft. Retrieved 2012-05-05.
- "SoX man page". Retrieved 2011-11-24.
- "Modified xmms-mad". 2005-03-06. Retrieved 2010-12-30.
- "XMPlay". XMPlay. Retrieved 2011-11-24.
- "Zortan MP3 Media Studio". Zortam. 2011-11-09. Retrieved 2011-11-24.
- "What is Rockbox? Why should I use it?". Retrieved 2011-12-12.
- ""Replay Gain" on Sansa Fuze, Fuze+ and Clip+". Retrieved 2011-12-12.
- "DeaDBeeF Player". Retrieved 2011-08-17.
- "GoneMAD Music Player". Retrieved 2012-06-13.
- "Neutron Music Player". Retrieved 2012-01-30.
- "MyTunes Music Manager". Retrieved 2012-01-27.
- "PowerAMP v2.0". Retrieved 2011-12-12.
- "Vanilla Music - Android Apps on Google Play". Retrieved 2013-07-05.
- "WinAmp for Android". Retrieved 2011-12-12.
- "XenoAmp a Slightly Different Audio Player". Retrieved 2017-04-26.
- "1.1.6 patch notes". Retrieved 18 October 2012.
- "MP3Gain". Hydrogenaudio. 2007-06-13. Retrieved 2010-12-30.