|
NAMEvorbisgain - calculate the replay gain for Ogg Vorbis filesSYNOPSISvorbisgain [ -acCdfhqrsv ] [ -g album gain ] input_files ...DESCRIPTIONvorbisgain calculates the ReplayGain values for the named Ogg Vorbis input files and writes back the result in the form of tags (comments) in the file. These values can be used by a playback program to maintain a uniform sound level during play. (See http://www.replaygain.org/ for more information.) vorbisgain uses a default target level of 89 dB, rather than the 83 dB recommended by the ReplayGain standard, when calculating the gain to apply. (Some players include a pre-amplification setting with which the target level can be changed.)vorbisgain input files must be Ogg Vorbis I files with 1 or 2 channels and a sample rate of 48 kHz, 44.1 kHz, 32 kHz, 24 kHz, 22050 Hz, 16 kHz, 12 kHz, 11025 Hz or 8 kHz. If an input file contains multiple streams (i.e., it is chained), the streams must all have the same format, in terms of sampling frequency and number of channels. All streams in a chained file are processed, but the ReplayGain tags are only written to (or removed from) the first stream. OPTIONS
EXAMPLESSimplest version. Calculate the track gain and peak only.vorbisgain somefile.ogg
Note that the following examples are only possible if vorbisgain was configured with --enable-recursive. Calculate the album gain and peak, in addition to the track gain and peak, for all .ogg files in the directory "music" (and all subdirectories). All files in one directory are treated as belonging to the same album. Files that already have ReplayGain tags are not re-calculated. Note the quotes, as they cause the shell to not do any filename globbing: vorbisgain -a -f -r "music/*.ogg"
Calculate the album gain. The files specified before the directory "album" are treated as one album, the files in the directory "album" as another album and the remaining files as a third album: vorbisgain -a -r a.ogg b.ogg c.ogg album d.ogg e.ogg
f.ogg
Remove all replaygain tags from a collection of oggs: vorbisgain -c -r "music/*.ogg"
TAG FORMATvorbisgain creates tags like these (when in -a mode):REPLAYGAIN_TRACK_GAIN=-7.03 dB
REPLAYGAIN_TRACK_PEAK=1.21822226
REPLAYGAIN_ALBUM_GAIN=-6.37 dB
REPLAYGAIN_ALBUM_PEAK=1.21822226
Gain specifies how much the volume should be changed before playback, in dB. Peak is the maximum sample value of the file before any gain has been applied, where 1.0 means "full sample value" (32,767 when decoding to signed 16 bit samples). Earlier versions of vorbisgain (before 0.30) created the following tags: RG_RADIO
RG_PEAK
RG_AUDIOPHILE
When -c is used, RG_RADIO is converted to REPLAYGAIN_TRACK_GAIN, RG_PEAK to REPLAYGAIN_TRACK_PEAK, RG_AUDIOPHILE to REPLAYGAIN_ALBUM_GAIN and REPLAYGAIN_ALBUM_PEAK is calculated as the maximum of all RG_PEAK tags in the album. AUTHORS
BUGSNone known.SEE ALSO
Visit the GSP FreeBSD Man Page Interface. |