Copyright © 2011, 2012 by Peter Belkner (http://home.snafu.de/pbelkner/)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
R128GAIN is an FFmpeg and SoX based EBU R128 compliant loudness scanner.
| Home: | http://r128gain.sourceforge.net/ | |
| R128GAIN at HA Forum: | http://www.hydrogenaudio.org/forums/index.php?showtopic=85978 | |
| Project: | http://sourceforge.net/projects/r128gain/ | |
| Download: | http://sourceforge.net/projects/r128gain/files/ | |
| For playback see also: | http://in-ffsox.sourceforge.net/ | |
| 2012-04-06 | 0.9.7 |
Added an option to the command line (--tags=[rg|bwf])
and the GUI (drop down box) for letting R128GAIN write
BWF tags
instead of ReplayGain tags. The following BWF tags are currently supported
(depending on the format they may appear converted to upper case):
|
| 2012-03-18 | 0.9.6-3 |
|
| 2012-02-11 | 0.9.6 |
|
| 2012-02-07 | 0.9.5 |
|
| 2012-02-04 | 0.9.4 |
|
| 2012-01-06 | 0.9.3 |
|
| 2011-12-18 | 0.9.2 |
|
| 2011-12-09 | 0.9.1 |
|
| 2011-11-20 | 0.9 |
|
| 2011-10-08 | 0.8.8 |
|
| 2011-10-03 | 0.8.7 |
|
| 2011-07-10 | 0.8.6 | Allow choosing the BS.1770 block overlap by parameter partition (1, 2, 3, ...). The corresponding overlap in % is (1 - 1/partition) * 100%. |
| 2011-05-15 | 0.8.5 |
Important: Requires "bumped"
FFmpeg, i.e.
"avformat-53.dll",
"avcodec-53.dll", and
"avutil-51.dll". For upgrading to the latest full FFmpeg build
get the respective DDLs from
http://ffmpeg.zeranoe.com/builds/win32/shared/, orPlease note that FFmpeg's MP3 muxer (in "avformat-53.dll") now calculates a XING header, i.e. MP3s processed with R128GAIN now contain the correct length information. |
R128GAIN supports a variety of configuration options:



Further options:
Command line syntax:
$ r128gain --help
An EBU R128 (http://tech.ebu.ch/loudness) compliant loudness scanner.
For details refer to "http://r128gain.sourceforge.net/".
Usage: r128gain [options] (file|directory)+ [-o <directory> [flac|mkv]]
Options:
--r128 Run in EBU R128-2 compliant mode (default).
--rg Run in ReplayGain compliant mode.
--compliant=<mode> Run in compliance mode ("r128-2", "r128-1", "rg").
--r128-compatible Calibrate output according to EBU R128.
--rg-compatible Calibrate output according to ReplayGain.
--histogram Build statistics using a histogram (default).
--sequence Build statistics using a sequence.
--partition=<int> BS.1770 overlap
(overlap in % = (1 - 1/partition) * 100%,
default: 4, i.e. 75% overlap).
--gate=<float> BS.1770 gate (-10.0 .. -8.0, default: -10.0).
--rg-calibration=<float> Aequivalent to use for ReplayGain
loudness (default: -18.0).
--true-peak=on,--true-peak Up-sample for peak determination (default).
--true-peak=off Switch off up-sampling.
--range=on,--range Calculate loudness range (default).
--range=off Don't calculate loudness range.
--tags=[rg|bwf] Write ReplayGain (default) or BWF tags.
--fast Switch off up-sampling and don't calculate loudness range.
--mono=off Treat mono as stereo (default).
--mono=on,--mono Don't treat mono as stereo.
--progress=on Display progress (default).
--progress=off Don't display progress.
--command=<string> Run command on each track.
--in-place Allow overwriting of files in place.
--loglevel=<integer> Set FFmpeg loglevel.
--regression Calculate linear regression between EBU R128
and ReplayGain.
--duration Print out duration.
--version Display version information.
--help Display this information.
Results for the EBU R128 test vector:
Test cases for Loudness Metering (tech3341.pdf):
$ r128gain ~/ebu-loudness-test-setv03/*3341*.wav SoX successfully loaded. FFmpeg successfully loaded. analyzing ... seq-3341-1-16bit.wav (1/9): -23.0 LUFS, -0.0 LU (peak: 0.071316: -22.9 dBFS, range: 1.8 LU) seq-3341-2-16bit.wav (2/9): -33.0 LUFS, 10.0 LU (peak: 0.023049: -32.7 dBFS, range: 1.8 LU) seq-3341-2011-8_seq-3342-6-24bit-v02.wav (3/9): -23.0 LUFS, 0.0 LU (peak: 0.737823: -2.6 dBFS, range: 15.3 LU) seq-3341-3-16bit-v02.wav (4/9): -23.0 LUFS, 0.0 LU (peak: 0.070843: -23.0 dBFS, range: 13.0 LU) seq-3341-4-16bit-v02.wav (5/9): -23.0 LUFS, 0.0 LU (peak: 0.070843: -23.0 dBFS, range: 13.0 LU) seq-3341-5-16bit-v02.wav (6/9): -23.0 LUFS, -0.0 LU (peak: 0.100048: -20.0 dBFS, range: 6.0 LU) seq-3341-6-5channels-16bit.wav (7/9): -23.0 LUFS, 0.0 LU (peak: 0.063132: -24.0 dBFS, range: 1.8 LU) seq-3341-6-6channels-WAVEEX-16bit.wav (8/9): -23.0 LUFS, 0.0 LU (peak: 0.063132: -24.0 dBFS, range: 1.8 LU) seq-3341-7_seq-3342-5-24bit.wav (9/9): -23.0 LUFS, 0.0 LU (peak: 0.358340: -8.9 dBFS, range: 6.3 LU) ALBUM: -23.2 LUFS, 0.2 LU (peak: 0.737823: -2.6 dBFS, range: 15.4 LU)
Test cases for Loudness Range (tech3342.pdf):
$ r128gain ~/ebu-loudness-test-setv03/*3342*.wav SoX successfully loaded. FFmpeg successfully loaded. analyzing ... seq-3341-2011-8_seq-3342-6-24bit-v02.wav (1/6): -23.0 LUFS, 0.0 LU (peak: 0.737823: -2.6 dBFS, range: 15.3 LU) seq-3341-7_seq-3342-5-24bit.wav (2/6): -23.0 LUFS, 0.0 LU (peak: 0.358340: -8.9 dBFS, range: 6.3 LU) seq-3342-1-16bit.wav (3/6): -22.6 LUFS, -0.4 LU (peak: 0.100088: -20.0 dBFS, range: 10.0 LU) seq-3342-2-16bit.wav (4/6): -16.8 LUFS, -6.2 LU (peak: 0.177971: -15.0 dBFS, range: 5.0 LU) seq-3342-3-16bit.wav (5/6): -20.0 LUFS, -3.0 LU (peak: 0.100088: -20.0 dBFS, range: 20.0 LU) seq-3342-4-16bit.wav (6/6): -24.5 LUFS, 1.5 LU (peak: 0.100073: -20.0 dBFS, range: 15.0 LU) ALBUM: -21.2 LUFS, -1.8 LU (peak: 0.737823: -2.6 dBFS, range: 17.1 LU)