Your company here — click to reach over 10,000 unique daily visitors

r128gain - Man Page


r128gain [-h] [-a] [-r] [-s] [-o] [-p [MTIME_SECOND_OFFSET]] [-c THREAD_COUNT] [-f FFMPEG_PATH] [-d] [-v {warning,normal,debug}] path [path ...]


r128gain v1.0.7.Scan audio files and tag them with ReplayGain/R128 loudness metadata.


Audio file paths, or directory paths for recursive mode


-a,  --album-gain

Enable album gain

-r,  --recursive

Enable recursive mode: process audio files in directories and subdirectories. If album gain is enabled, all files in a directory are considered as part of the same album.

-s,  --skip-tagged

Do not scan & tag files already having loudness tags. Warning: only enable if you are sure of the validity of the existing tags, as it can cause volume differences if existing tags are incorrect or coming from a old RGv1 tagger.

-o,  --opus-output-gain

For Opus files, write album or track gain in the 'output gain' Opus header (see https://tools.ietf.org/html/rfc7845#page-15). This gain is mandatory to apply for all Opus decoders so this should improve compatibility with players not supporting the R128 tags. Warning: This is EXPERIMENTAL, only use if you fully understand the implications.


Preserve modification times of tagged files, optionally adding MTIME_SECOND_OFFSET seconds.

-c THREAD_COUNT, --thread-count THREAD_COUNT

Maximum number of tracks to scan in parallel. If not specified, autodetect CPU count

-f FFMPEG_PATH, --ffmpeg-path FFMPEG_PATH

Full file path of ffmpeg executable (only needed if not in PATH). If not specified, autodetect

-d,  --dry-run

Do not write any tags, only show scan results

-v {warning,normal,debug}, --verbosity {warning,normal,debug}

Level of logging output




The latest version of python-r128gain may be downloaded from https://github.com/desbma/r128gain


2024-06-07 python-r128gain Generated Python Manual