different cds and different tracks are mastered at different volume levels. with different tracks being played in a random order the overall volume can jump around drastically. replay gain calculates suggested gain adjustment for each track. replay gain data is ideally written to the file header of a music file [music bitstream is not touched]. players that support replay gain data can scale the audio data by using this replay gain value in order to achieve a consistent perceived loudness across all tracks. in mp3's case also direct bitstream adjustment is possible.
there are 3 different replay gain modes:
the radio/title mode is used to play every track at the same perceived volume.
original replay gain proposal suggest that when using radio/title/track gain, all tracks would be played at 83db spl volume. however the tools for mp3, ogg vorbis and musepack mpc use 89db as default, because 83db is too quiet for portable players.
album gain tries to retain the volume differences between the specific album tracks, but overall adjust the volume of the album tracks closer to the 89db. this should be done one album at a time, or should be made sure that the replay gain program knows which tracks belong to a certain album.
author/user can set a desired replay gain level.
first download the daily vorbis package which includes vorbisgain.exe here. notice that the daily compile package also includes vorbis encoder which may not always be optimal quality, so don't use that encoder for serious encoding unless you're sure what you are doing.
first, after vorbis gain is download open the zip file and extract vorbis gain to somewhere in your %path%. what that means is to extract vorbisgain.exe to somewhere like c:\windows [or c:\winnt] or another directory where vorbisgain.exe can be accessed without being in that directory.
vorbisgain can be used from the command line without any external software, or it can be use with a front-end. oggifier 1.6. this tutorial explains both processes.
after downloading oggifier extract and start it. select the vorbisgain tab.
if you are running vorbis gain in order to adjust an encoded album it is recommended to use the album/audiophile setting "-a". in the "switches" box enter "-a" and hit the "+" button. this makes vorbisgain calculate both the radio/track gain and album gain, and save the gain values to the file header. if the "-a" is not specified, only radio/track gain will be calculated and added.
next for "directory" hit the "..." button and select the directory where your ogg vorbis files are or enter the directory manually. oggifier set up is pictured below in figure 1.
figure 1: oggifier for vorbis gain
once set up hit the "go" button and let vorbis gain do it's thing.
after the gain adjustments, you can select from your player's [winamp atm.] plugin settings, which replay gain mode will be used: radio/track or album. or you can disable the use of replay gain adjustment if you don't want to use it.
start a command prompt and switch to the directory of the vorbis files to be analysed. use vorbis gain like:
the following switches are valid options, use none for standard analysis:
run in audiophile/album mode. -a will add album gain calculations. this should be done for each album separately, or use -r switch which considers each folder as an album.
set the album gain to the specified value. implies album mode. you can set the album gain value also yourself. this overrides internal album gain calculations.
remove any vorbisgain tags. no gains are calculated. removes any gain values from the file header[s]
display results only. no files are modified
don't recalculate tagged files
print this help text
don't print any output [except errors]
search for files recursivly, each folder as an album
skip non-vorbis or faulty files
set the target replay level to the specified value. you can set the target radio/track gain yourself. this overrides internal radio/track gain calculations.
display version number and exit
for the entire directory wildcard are valid [i.e. *.ogg] for the files.
once selected run vorbisgain with the parameters and let it do it's thing.
usually in most players replaygain must be set up.
for winamp 2.x:
first download musepack decoder from the precompiled musepack decoder section [scroll down a bit]. the decoder package includes both mppdec.exe decoder and replaygain.exe. extract both files. copy both mppdec.exe and replaygain.exe to somewhere in your %path%. what that means is to extract mppdec.exe and replaygain.exe to somewhere like c:\windows [or c:\winnt] or another directory where replaygain.exe and mppdec.execan be accessed without being in that directory.
replay gain for musepack can be used from the command line or with a front end like the mpc batch encoder available from mpc batch encoder page. this tutorial explains both processes.
after downloading the mpc batch encoder front-end extract and start it. select the replaygain tab. from the "switches" drop-down select "-auto". both radio/title gain and album gain will be calculated at the same time and added to the file header. next for "directory" hit the "..." button and select the directory where your ogg vorbis files are or enter the directory manually.
notice that you should adjust albums separately [for example in separate folders] in order to apply correct album gain values for each track of a album. mpc batch encoder is shown if figure #2:
figure 2: mpc batch encoder for replaygain
hit the "go" button and let replaygain do its thing.
after the gain adjustments, you can select from your player's [winamp atm.] plugin settings, which replay gain mode will be used: radio/track or album. or you can disable the use of replay gain adjustment if you don't want to use it.
start a command prompt and switch to the directory of the musepack files to be analysed. use replaygain like:
the following switches are valid options, use just "--auto" for standard analysis:
percentile can be:
level can be: [value in the range -300 db...+300 db, set as title based replay gain]
auto determine gains and peak values
list title based values
list title and album based values
for the entire directory wildcard are valid [i.e. *.mpc] for the files.
"replaygain --auto *.mpc" will calculate both radio/title and album gain for all wildcarded files. notice that you should adjust albums separately [for example in separate folders] in order to apply correct album gain values for each track of a album.
lists both title and album based values.
should do automatic album recognition based on file name, but the current operation is not verified.
percentile options
winamp 2.x:
mp3gain just requires to download and run one gui program. start off by downloading mp3 gain from the mp3gain homepage. extract and then run the installer. start up mp3 gain from the start menu.
hit the large "add files" button or "add directory" to select the mp3s you want to apply mp3gain to. next from the "modify gain" menu select radio or album gain and let mp3gain work. notice that you should adjust albums separately [for example in separate folders] in order to apply correct album gain values for each track of a album.
mp3gain differs from other formats' replaygain tools, because it directly adjusts the music bitstream. this means that once you set the replaygain, you can not disable it from a player. positive point is that every mp3-player/decoder automatically uses the gain adjustment.
figure 3: mp3gain
the lame tag in development, will contain a place for replaygain values. this means that the values will be written into the lame tag header [instead of direct music bitstream adjustment], and you can either enable or disable the gain adjustment from a player. it will of course need player support in order to work.