Rsgain: Difference between revisions

From Hydrogenaudio Knowledgebase
No edit summary
(Update for v3.0)
Line 5: Line 5:
| developer            = complexlogic
| developer            = complexlogic
| released            = 2022-05-10
| released            = 2022-05-10
| stable_release      = 2.0.1
| stable_release      = 3.0
| stable_release_date  = 2022-05-18
| stable_release_date  = 2022-09-14
| operating_system    = Windows, macOS, Linux
| operating_system    = Windows, macOS, Linux
| use                  = ReplayGain tagging
| use                  = ReplayGain tagging
Line 14: Line 14:
'''rsgain''' ('''r'''eally '''s'''imple '''gain''') is a free and open source [[ReplayGain 2.0 specification|ReplayGain 2.0]] tagging utility for Windows, macOS, and Linux. rsgain applies loudness metadata tags to your files, while leaving the audio stream untouched. A [[ReplayGain#Players_support|ReplayGain-compatible player]] will dynamically adjust the volume of your tagged files during playback.
'''rsgain''' ('''r'''eally '''s'''imple '''gain''') is a free and open source [[ReplayGain 2.0 specification|ReplayGain 2.0]] tagging utility for Windows, macOS, and Linux. rsgain applies loudness metadata tags to your files, while leaving the audio stream untouched. A [[ReplayGain#Players_support|ReplayGain-compatible player]] will dynamically adjust the volume of your tagged files during playback.


rsgain is a heavily modified fork of [[loudgain]]. The goal of rsgain is to take the excellent platform created by loudgain and simplify it for the average user, while also preserving the advanced features for users that need them. The following improvements have been made from loudgain:
rsgain is designed with a "batteries included" philosophy, allowing a user to scan their entire music library without requiring external scripts or other tools. It aims to strike the perfect balance between power and simplicity by providing multiple user interfaces. See [[#usage|Usage]] for more information.
* Native Windows support
* Built-in recursive directory scanning without the need for a wrapper script. See [[#Easy_Mode|Easy Mode]] for more details.
* Multithreaded scanning


==Installation==
==Installation==
Line 23: Line 20:


===Windows===
===Windows===
rsgain is compatible with Windows 10 and later. Download the win64 .zip file from the [https://github.com/complexlogic/rsgain/releases/latest latest release on GitHub], and extract its contents to a directory of your choosing.  
rsgain is compatible with Windows 10 and later. Download the win64 .zip file from the [https://github.com/complexlogic/rsgain/releases/latest latest release on GitHub], and extract its contents to a directory of your choice.  


It is recommended to add the directory to your {{code|Path}} system environment variable so you can invoke the program with the {{code|rsgain}} command instead of the path to its .exe file. In the Windows taskbar search, type "env", then select "Edit the system environment variables". In the resulting window, click the "Environment variables" button. In the next window under "System variables", select "Path", then press Edit. Add the folder that you extracted {{code|rsgain.exe}} to in the previous step.
It is recommended to add the directory to your {{code|Path}} system environment variable so you can invoke the program with the {{code|rsgain}} command instead of the path to its .exe file. In the Windows taskbar search, type "env", then select "Edit the system environment variables". In the resulting window, click the "Environment variables" button. In the next window under "System variables", select "Path", then press Edit. Add the folder that you extracted {{code|rsgain.exe}} to in the previous step.


===macOS===
===macOS===
There is currently no binary package available for macOS, so Mac users will need to build from source. See the [https://github.com/complexlogic/rsgain/blob/master/docs/BUILDING.md#building build instructions on GitHub].
There is a Homebrew formula available for macOS users. Make sure you have Homebrew and the latest available Xcode installed. Execute the following command to install:
 
{{code|brew install complexlogic/tap/rsgain}}


===Linux===
===Linux===
An amd64 .deb package is provided on the [https://github.com/complexlogic/rsgain/releases/latest GitHub release page]. It is installable on most APT-based distro releases from 2021 and later. There is also a [https://github.com/complexlogic/rsgain/blob/master/config/PKGBUILD PKGBUILD script] available for Arch/Manjaro users.
An amd64 .deb package is provided on the [https://github.com/complexlogic/rsgain/releases/latest GitHub release page]. It is installable on Debian Bullseye and later, Ubuntu 21.04 and later. There is also a [https://aur.archlinux.org/packages/rsgain-git AUR package] available for Arch/Manjaro users.


Users of other distros will need to build from source. See the [https://github.com/complexlogic/rsgain/blob/master/docs/BUILDING.md#building build instructions on GitHub].
Users of other distros will need to build from source. See the [https://github.com/complexlogic/rsgain/blob/master/docs/BUILDING.md#building build instructions on GitHub].
==Format Support==
rsgain has support for the following file formats:
* [[MP2]]/[[MP3]]
* [[FLAC]]
* [[Ogg]] ([[Vorbis]], [[Speex]])
* [[Opus]]
* [[M4A]] ([[AAC]], [[ALAC]])
* [[WMA]]
* [[WAV]]
* [[AIFF]]
* [[Wavpack]]
* [[Monkey's Audio]]


==Usage==
==Usage==
rsgain has two modes of operation: Easy Mode and Custom Mode. Easy Mode is recommended over Custom Mode for almost all use cases. Custom Mode exists to provides backwards compatibility with the legacy loudgain/mp3gain command line.
rsgain contains two separate user interfaces: Easy Mode and Custom Mode. The distinction between the two modes is rooted in the history of ReplayGain utilities.
 
Legacy ReplayGain tagging utilities such as mp3gain did not support recursive directory-based scanning. The user was required to manually specify a list of files on the command line, preceded by options which were numerous and complex. This interface provided a lot of power and flexibility, but it wasn't particularly user friendly. Performing a full library scan typically required the user to supplement the program with a wrapper script that traversed the directory tree and detected the files.
 
rsgain's Easy Mode ''is'' that wrapper script; the functionality is built-in to the program. In Easy Mode, the user simply points the program to their library and it will be recursively scanned with all recommended settings enabled by default.  
 
The legacy-style interface has been retained as "Custom Mode" for users that require a higher level of control.


===Easy Mode===
===Easy Mode===
Line 49: Line 67:
{{code|rsgain easy "C:\path\to\music library"}}
{{code|rsgain easy "C:\path\to\music library"}}


This is all that is required for most users. Advanced users should see [[#Setting_Overrides|Setting Overrides]] for more information about the default settings and how to override them, if desired.
This is all that is required for most users. Advanced users should see the [[#scan_presets|Scan Presets]] section for more information about the default settings and how to override them, if desired.


====Multithreaded Scanning====
====Multithreaded Scanning====
Easy Mode includes optional multithreaded operation to speed up the duration of a scan. Use the {{code|-m}} option, followed by the number of threads to create. The number of threads must be one per physical CPU core or fewer. For example, if you have a quad core CPU:
Easy Mode includes optional multithreaded operation to speed up the duration of a scan. Use the {{code|-m}} option, followed by the number of threads to create. The number of threads must not exceed the number that your CPU supports. For example, if you have a CPU with 4 threads:


{{code|rsgain easy -m 4 /path/to/music/library}}
{{code|rsgain easy -m 4 /path/to/music/library}}


The scan progress bar is automatically disabled in multithreaded operation because multiple files are being scanned in parallel.  
If you don't know how many threads your CPU has, you can also specify {{code|-m MAX}} and rsgain will use the number provided by your operating system. This is useful for writing scripts where the hardware properties of the target machine are unknown.


The speed gains offered by multithreaded scanning are significant. With {{code|-m 4}} or higher, you can typically expect to see speed gains of 60-70%. However, you will also have close to 100% CPU utilization when scanning multithreaded. Consider using multithreaded on a full library scan, and the default single threaded mode when incrementally adding one or two albums to your library.
Parallel scan jobs are generated on a ''per-directory'' basis, not a per-file basis. If you request 4 threads but there is only 1 directory to scan, a single thread will be working and the other 3 will sit idle the entire time. Multithreaded mode is optimized for scanning a very large number of directories. It is recommended to use multithreaded mode for full library scans and the default single threaded mode when incrementally adding 1 or 2 albums to your library.


====Setting Overrides====
The speed gains offered by multithreaded scanning are significant. With {{code|-m 4}} or higher, you can typically expect to see a 50-80% reduction in total scan time, depending on your hardware, settings, and library composition.
Easy Mode scans files with the following settings by default:
* Clipping protection enabled
* Lowercase tags for MP2/MP3, M4A, WMA, WAV, and AIFF (uppercase for all others)
* Decibal units
* All optional tags enabled:
** Range calculations
** Peak calcuations
** Reference loudness
** Album tags
* ID3 version 2.3 tags
* Strip obsolete ID3 version 1 tags
* -1 dBTP max true peak
* No pregain


These settings are recommended for maximum comptatibility with available players. However, if you need one of the settings changed, you can override them on a per-format basis using the {{code|-o}} option, and an overrides file.
====Logging====
You can use the {{code|-O}} option to enable scan logs. The program will save a tab-delimited file titled {{code|replaygain.csv}} with the scan results for every directory it scans. The log files can be viewed in a spreadsheet application such as Microsoft Excel or LibreOffice Calc.


The overrides file is an INI-formatted file that contains sections enclosed in square brackets which correspond to the available formats, and each section contains key=value pairs that correspond to settings. The overrides feature is intended for users that can't use the default settings of Easy Mode, but still prefer the functionality of Easy Mode over Custom Mode.
====Scan Presets====
Easy Mode scans files with the following settings by default:
* -18 LUFS target loudness
* Album tags enabled
* Sample peak calculations for peak tags
* Clipping protection enabled for positive gain values only (0 dB max peak)
* Standard uppercase tags for all formats
* ID3v2.3 tags for ID3 formats
* Standard ReplayGain tags for Opus files


For example, Easy Mode writes lowercase tags on MP3 files by default, but suppose you want uppercase tags instead. Format your {{code|overrides.ini}} file as follows:
These settings are recommended for maximum compatibility with modern players. However, if you need one or more of the settings changed, you can use a preset file.


<pre>
A preset file is an INI-formatted configuration file that contains sections enclosed in square brackets, and each section contains key=value pairs that correspond to settings. The first section in a presets file is titled "Global" and contains settings that will be applied to every format. The remaining sections pertain to a particular audio format, and the settings within them will only be applied to that format. This allows the user to define settings on a per-format basis. If a setting in the "Global" section is in conflict with one in the format-specific section, the format-specific value will always take precedence.
[MP3]
Lowercase=false
</pre>


Then, pass the path to the overrides file with the {{code|-o}} option:
A preset is specified with the {{code|-p}} option, followed by the path to a preset file ''or'' a preset name. A preset name is the filename of a preset without the directory or .ini file extension; rsgain will search the default preset location(s) for the file based on your platform:
* On Windows, the folder {{code|presets}} in the same folder that contains {{code|rsgain.exe}}
* On Unix platforms, rsgain will search first in the user home directory: {{code|~/Library/rsgain/presets}} on Mac and {{code|~/.config/rsgain/presets}} on Linux (you need to create these directories if they don't already exist). If the requested preset name is not found in the home directory, rsgain will search {{code|<install prefix>/share/rsgain/presets}}


{{code|rsgain easy -o /path/to/overrides.ini /path/to/music/library}}
For example, rsgain ships with a preset {{code|ebur128.ini}}, which will scan files based on the EBU R 128 recommendations. You can invoke this preset with {{code|-p ebur128}}. rsgain also ships with a preset {{code|default.ini}}, which is pre-populated with all of the default settings. This preset is not intended to be used directly, but rather to serve as a base for users to create their own presets. As such, it is not recommended to overwrite it. Instead, save a copy when using it as a base.


A default {{code|overrides.ini}} file ships with rsgain in the root package directory for Windows, and in {{code|<install prefix>/share/rsgain}} for Unix. The file is pre-populated with all settings that are available to change. Note that this is an ''overrides'' file, not a configuration file, i.e any formats or settings you're not interested in can simply be deleted and the defaults will be used instead.
The settings in a preset file are applied in an "overrides" fashion. In other words, any settings or formats you're not interested in can simply be deleted from the preset and the defaults will be used instead.


===Custom Mode===
===Custom Mode===
Custom Mode preserves loudgain's command line syntax for users that still need it. Unlike Easy Mode, Custom Mode works with files, not directories. If you want recursive directory-based scanning, you will need to use a wrapper script.
Custom Mode provides a more complex command line syntax that is similar in nature to mp3gain, loudgain, and other legacy ReplayGain scanners. Only the most basic settings are enabled by default. Unlike Easy Mode, Custom Mode works with files, not directories. If you want recursive directory-based scanning, you will need to write a wrapper script.


Custom Mode is invoked with {{code|rsgain custom}} followed by options and a list of files to scan. For example, scan all FLAC files in the current directory with album gain and clipping protection enabled:
Custom Mode is invoked with {{code|rsgain custom}} followed by options and a list of files to scan. For example, scan and tag a short list of MP3 files with album tags enabled:


{{code|rsgain custom -a -k -s e *.flac}}
{{code|rsgain custom -a -s i file1.mp3 file2.mp3 file3.mp3}}


See the command line help for all available options:
See the command line help for all available options:
Line 107: Line 120:


Options:
Options:
   -h,  --help           Show this help.
   -h,  --help             Show this help.


  -r,  --track          Calculate track gain only (default).
   -a,  --album             Calculate album gain and peak.
   -a,  --album           Calculate album gain (and track gain).


   -c,   --clip            Ignore clipping warning.
   -s s, --tagmode=s        Scan files but don't write ReplayGain tags (default).
  -k,  --noclip          Lower track/album gain to avoid clipping (<= -1 dBTP).
   -s d, --tagmode=d        Delete ReplayGain tags from files.
   -K n, --maxtpl=n        Avoid clipping; max. true peak level = n dBTP.
   -s i, --tagmode=i        Scan and write ReplayGain 2.0 tags to files.
   -d n, --pregain=n      Apply n dB/LU pre-gain value (-5 for -23 LUFS target).


   -s d, --tagmode=d      Delete ReplayGain tags from files.
   -l n, --loudness=n        Use n LUFS as target loudness (-30 ≤ n ≤ -5).
  -s i, --tagmode=i      Write ReplayGain 2.0 tags to files.
  -s e, --tagmode=e      like '-s i', plus extra tags (reference, ranges).
  -s l, --tagmode=l      like '-s e', but LU units instead of dB.
  -s s, --tagmode=s      Don't write ReplayGain tags (default).


   -L,   --lowercase       Force lowercase tags (MP2/MP3/MP4/WMA/WAV/AIFF).
   -c n, --clip-mode=n       No clipping protection (default).
                          This is non-standard but sometimes needed.
  -c p, --clip-mode=p      Clipping protection enabled for positive gain values only.
   -S,   --striptags       Strip tag types other than ID3v2 from MP2/MP3.
   -c a, --clip-mode=a       Clipping protection always enabled.
                          Strip tag types other than APEv2 from WavPack/APE.
   -m n, --max-peak=n        Use max peak level n dB for clipping protection.
   -I 3, --id3v2version=3  Write ID3v2.3 tags to MP2/MP3/WAV/AIFF.
   -t,   --true-peak        Use true peak for peak calculations.
   -I 4, --id3v2version=4  Write ID3v2.4 tags to MP2/MP3/WAV/AIFF (default).


   -O,  --output         Database-friendly tab-delimited list output.
  -L,  --lowercase        Write lowercase tags (MP2/MP3/MP4/WMA/WAV/AIFF).
   -q,  --quiet           Don't print scanning status messages.
                            This is non-standard but sometimes needed.
  -I 3, --id3v2-version=3  Write ID3v2.3 tags to MP2/MP3/WAV/AIFF (default).
  -I 4, --id3v2-version=4  Write ID3v2.4 tags to MP2/MP3/WAV/AIFF.
 
  -o d, --opus-mode=d      Write standard ReplayGain tags, clear header output gain (default).
  -o r, --opus-mode=r      Write R128_*_GAIN tags, clear header output gain.
  -o t, --opus-mode=t      Write track gain to header output gain.
  -o a, --opus-mode=a      Write album gain to header output gain.
 
   -O,  --output           Output tab-delimited scan data to stdout.
   -q,  --quiet             Don't print scanning status messages.


Please report any issues to https://github.com/complexlogic/rsgain/issues
Please report any issues to https://github.com/complexlogic/rsgain/issues
</pre>
</pre>
==Format Support==
rsgain has support for the following file formats:
* [[MP2]]/[[MP3]]
* [[FLAC]]
* [[Ogg]] ([[Vorbis]], [[Speex]])
* [[Opus]]
* [[M4A]] ([[AAC]], [[ALAC]])
* [[WMA]]
* [[WAV]]
* [[AIFF]]
* [[Wavpack]]
* [[Monkey's Audio]]


==See also==
==See also==

Revision as of 16:03, 18 September 2022

rsgain
{{{logo}}}

Default help screen in a Linux terminal
Developer(s) complexlogic
Release information
Initial release 10 May 2022
Stable release 3.0 (September 14, 2022)
Preview release {{{preview_release}}}
Compatibility
Operating system Windows, macOS, Linux
Additional information
Use ReplayGain tagging
License BSD license
Website [1]

rsgain (really simple gain) is a free and open source ReplayGain 2.0 tagging utility for Windows, macOS, and Linux. rsgain applies loudness metadata tags to your files, while leaving the audio stream untouched. A ReplayGain-compatible player will dynamically adjust the volume of your tagged files during playback.

rsgain is designed with a "batteries included" philosophy, allowing a user to scan their entire music library without requiring external scripts or other tools. It aims to strike the perfect balance between power and simplicity by providing multiple user interfaces. See Usage for more information.

Installation

rsgain is available in source form on all platforms, and executable form on some platforms.

Windows

rsgain is compatible with Windows 10 and later. Download the win64 .zip file from the latest release on GitHub, and extract its contents to a directory of your choice.

It is recommended to add the directory to your Path system environment variable so you can invoke the program with the rsgain command instead of the path to its .exe file. In the Windows taskbar search, type "env", then select "Edit the system environment variables". In the resulting window, click the "Environment variables" button. In the next window under "System variables", select "Path", then press Edit. Add the folder that you extracted rsgain.exe to in the previous step.

macOS

There is a Homebrew formula available for macOS users. Make sure you have Homebrew and the latest available Xcode installed. Execute the following command to install:

brew install complexlogic/tap/rsgain

Linux

An amd64 .deb package is provided on the GitHub release page. It is installable on Debian Bullseye and later, Ubuntu 21.04 and later. There is also a AUR package available for Arch/Manjaro users.

Users of other distros will need to build from source. See the build instructions on GitHub.

Format Support

rsgain has support for the following file formats:

Usage

rsgain contains two separate user interfaces: Easy Mode and Custom Mode. The distinction between the two modes is rooted in the history of ReplayGain utilities.

Legacy ReplayGain tagging utilities such as mp3gain did not support recursive directory-based scanning. The user was required to manually specify a list of files on the command line, preceded by options which were numerous and complex. This interface provided a lot of power and flexibility, but it wasn't particularly user friendly. Performing a full library scan typically required the user to supplement the program with a wrapper script that traversed the directory tree and detected the files.

rsgain's Easy Mode is that wrapper script; the functionality is built-in to the program. In Easy Mode, the user simply points the program to their library and it will be recursively scanned with all recommended settings enabled by default.

The legacy-style interface has been retained as "Custom Mode" for users that require a higher level of control.

Easy Mode

Easy Mode recursively scans your entire music library using the recommended settings for each file type. You can use Easy Mode if the following conditions apply:

  • Your music library is organized by album, i.e. each album has its own folder
  • In each album folder, all audio files are of the same type. It is acceptable to have non-audio files mixed in such as log files or artwork, but if multiple audio file types are detected, the folder will not be scanned.

Easy Mode is invoked with the command rsgain easy followed by the root of the directory you want to scan, e.g.:

rsgain easy /path/to/music/library

rsgain easy "C:\path\to\music library"

This is all that is required for most users. Advanced users should see the Scan Presets section for more information about the default settings and how to override them, if desired.

Multithreaded Scanning

Easy Mode includes optional multithreaded operation to speed up the duration of a scan. Use the -m option, followed by the number of threads to create. The number of threads must not exceed the number that your CPU supports. For example, if you have a CPU with 4 threads:

rsgain easy -m 4 /path/to/music/library

If you don't know how many threads your CPU has, you can also specify -m MAX and rsgain will use the number provided by your operating system. This is useful for writing scripts where the hardware properties of the target machine are unknown.

Parallel scan jobs are generated on a per-directory basis, not a per-file basis. If you request 4 threads but there is only 1 directory to scan, a single thread will be working and the other 3 will sit idle the entire time. Multithreaded mode is optimized for scanning a very large number of directories. It is recommended to use multithreaded mode for full library scans and the default single threaded mode when incrementally adding 1 or 2 albums to your library.

The speed gains offered by multithreaded scanning are significant. With -m 4 or higher, you can typically expect to see a 50-80% reduction in total scan time, depending on your hardware, settings, and library composition.

Logging

You can use the -O option to enable scan logs. The program will save a tab-delimited file titled replaygain.csv with the scan results for every directory it scans. The log files can be viewed in a spreadsheet application such as Microsoft Excel or LibreOffice Calc.

Scan Presets

Easy Mode scans files with the following settings by default:

  • -18 LUFS target loudness
  • Album tags enabled
  • Sample peak calculations for peak tags
  • Clipping protection enabled for positive gain values only (0 dB max peak)
  • Standard uppercase tags for all formats
  • ID3v2.3 tags for ID3 formats
  • Standard ReplayGain tags for Opus files

These settings are recommended for maximum compatibility with modern players. However, if you need one or more of the settings changed, you can use a preset file.

A preset file is an INI-formatted configuration file that contains sections enclosed in square brackets, and each section contains key=value pairs that correspond to settings. The first section in a presets file is titled "Global" and contains settings that will be applied to every format. The remaining sections pertain to a particular audio format, and the settings within them will only be applied to that format. This allows the user to define settings on a per-format basis. If a setting in the "Global" section is in conflict with one in the format-specific section, the format-specific value will always take precedence.

A preset is specified with the -p option, followed by the path to a preset file or a preset name. A preset name is the filename of a preset without the directory or .ini file extension; rsgain will search the default preset location(s) for the file based on your platform:

  • On Windows, the folder presets in the same folder that contains rsgain.exe
  • On Unix platforms, rsgain will search first in the user home directory: ~/Library/rsgain/presets on Mac and ~/.config/rsgain/presets on Linux (you need to create these directories if they don't already exist). If the requested preset name is not found in the home directory, rsgain will search <install prefix>/share/rsgain/presets

For example, rsgain ships with a preset ebur128.ini, which will scan files based on the EBU R 128 recommendations. You can invoke this preset with -p ebur128. rsgain also ships with a preset default.ini, which is pre-populated with all of the default settings. This preset is not intended to be used directly, but rather to serve as a base for users to create their own presets. As such, it is not recommended to overwrite it. Instead, save a copy when using it as a base.

The settings in a preset file are applied in an "overrides" fashion. In other words, any settings or formats you're not interested in can simply be deleted from the preset and the defaults will be used instead.

Custom Mode

Custom Mode provides a more complex command line syntax that is similar in nature to mp3gain, loudgain, and other legacy ReplayGain scanners. Only the most basic settings are enabled by default. Unlike Easy Mode, Custom Mode works with files, not directories. If you want recursive directory-based scanning, you will need to write a wrapper script.

Custom Mode is invoked with rsgain custom followed by options and a list of files to scan. For example, scan and tag a short list of MP3 files with album tags enabled:

rsgain custom -a -s i file1.mp3 file2.mp3 file3.mp3

See the command line help for all available options:

Usage: rsgain custom [OPTIONS] FILES...
  Custom Mode allows the user to specify the options to scan the files with. The
  list of files to scan must be listed explicitly after the options.

Options:
  -h,   --help              Show this help.

  -a,   --album             Calculate album gain and peak.

  -s s, --tagmode=s         Scan files but don't write ReplayGain tags (default).
  -s d, --tagmode=d         Delete ReplayGain tags from files.
  -s i, --tagmode=i         Scan and write ReplayGain 2.0 tags to files.

  -l n, --loudness=n        Use n LUFS as target loudness (-30 ≤ n ≤ -5).

  -c n, --clip-mode=n       No clipping protection (default).
  -c p, --clip-mode=p       Clipping protection enabled for positive gain values only.
  -c a, --clip-mode=a       Clipping protection always enabled.
  -m n, --max-peak=n        Use max peak level n dB for clipping protection.
  -t,   --true-peak         Use true peak for peak calculations.

  -L,   --lowercase         Write lowercase tags (MP2/MP3/MP4/WMA/WAV/AIFF).
                            This is non-standard but sometimes needed.
  -I 3, --id3v2-version=3   Write ID3v2.3 tags to MP2/MP3/WAV/AIFF (default).
  -I 4, --id3v2-version=4   Write ID3v2.4 tags to MP2/MP3/WAV/AIFF.

  -o d, --opus-mode=d       Write standard ReplayGain tags, clear header output gain (default).
  -o r, --opus-mode=r       Write R128_*_GAIN tags, clear header output gain.
  -o t, --opus-mode=t       Write track gain to header output gain.
  -o a, --opus-mode=a       Write album gain to header output gain.

  -O,   --output            Output tab-delimited scan data to stdout.
  -q,   --quiet             Don't print scanning status messages.

Please report any issues to https://github.com/complexlogic/rsgain/issues

See also

External links