Scroll to navigation

rsgain(1) rsgain(1)

NAME

rsgain - ReplayGain 2.0 loudness normalizer

SYNOPSIS

rsgain [OPTIONS] <command> ...

DESCRIPTION

rsgain (really simple gain) is a ReplayGain 2.0 command-line utility.

It applies loudness metadata tags to audio and video files while leaving the audio stream untouched.

A ReplayGain-compatible player will dynamically adjust the volume of your tagged files during playback.

rsgain supports writing tags to the following file types:
- AIFF (.aiff, .aif, .snd)
- APE (.ape)
- FLAC (.flac)
- MP2 (.mp2)
- MP3 (.mp3)
- MP4 (.m4a)
- Musepack (.mpc)
- Ogg (.ogg, .oga, .spx)
- Opus (.opus)
- TAK (.tak)
- WAV (.wav)
- WavPack (.wv)
- WMA (.wma).

OPTIONS AND COMMANDS

Show help.
Show version number.
Easy Mode:
Recursively scan a directory with recommended settings.
Custom Mode:
Scan individual files with custom settings.

Run rsgain easy --help or rsgain custom --help for more information.

EASY MODE

Usage: rsgain easy [OPTIONS] DIRECTORY

Easy Mode recursively scans a directory using the recommended settings for each file type.

Easy Mode assumes that you have your music library organized with each album in its own folder.

OPTIONS

Show help.
Don't print scanning status messages.
Don't scan files with existing ReplayGain information.
Scan files with n parallel threads.
Load scan preset s.
Output tab-delimited scan data to CSV file per directory.
Output with sep header (needed for Microsoft Excel compatibility).
Output with files sorted in alphanumeric order.

CUSTOM MODE

Usage: rsgain custom [OPTIONS] FILES...

Custom Mode allows the user to specify the options to scan files with.

The list of files to scan must be listed explicitly after the options.

OPTIONS

Show help.
Calculate album gain and peak.
Don't scan files with existing ReplayGain information.
Scan files but don't write ReplayGain tags (default).
Delete ReplayGain tags from files.
Scan and write ReplayGain 2.0 tags to files.
Use n LUFS as target loudness (-30 ≤ n ≤ -5).
No clipping protection (default).
Clipping protection enabled for positive-gain values only.
Clipping protection always enabled.
Use max peak level n dB for clipping protection.
Use true peak for peak calculations.
Write lowercase tags (MP2/MP3/MP4/WMA/WAV/AIFF).
This is non-standard but sometimes needed.
Keep file's existing ID3v2 version, 3 if none exists (default).
Write ID3v2.3 tags to MP2/MP3/WAV/AIFF.
Write ID3v2.4 tags to MP2/MP3/WAV/AIFF.
Write standard ReplayGain tags, clear header output gain (default).
Write R128_*_GAIN tags, clear header output gain.
Same as 'r', plus override target loudness to -23 LUFS.
Write track gain to header output gain.
Write album gain to header output gain.
Output tab-delimited scan data to stdout.
Output with sep header (needed for Microsoft Excel compatibility).
Output with files sorted in alphanumeric order.
Preserve file mtimes.
Don't print scanning status messages.

BUGS

rsgain is maintained on GitHub. Please report all bugs to the issue tracker at https://github.com/complexlogic/rsgain/issues.

COPYRIGHT

Copyright (C) 2023 Hugh McMaster

rsgain is released under the BSD-2-Clause licence.

October 2023