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 a FFmpeg and SoX based EBU R128 compliant loudness scanner. It helps you normalizing the loudness of your audio and video files to the same level.
| 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/r128gain/1.0/ | |
| For playback see also: | http://in-ffsox.sourceforge.net/ | |
| 2012-10-14 | 1.0-α-6 |
|
| 2012-08-17 | 1.0-α-4 |
|
| 2012-08-15 | 1.0-α-3 |
|
| 2012-05-27 | 1.0-α-2 |
|
| 2012-05-18 | 1.0-α-1 |
|
| 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-2011 compliance mode (default).
--r128-2011 Run in EBU R128-2011 compliance mode (default).
--r128-2010 Run in EBU R128-2010 compliance mode.
--a85 Run in ATSC A/85:2011 compliance mode.
--a85-2011 Run in ATSC A/85:2011 compliance mode.
--rg2 Run in ReplayGain2 compliance mode.
--rg Run in ReplayGain compliance mode.
--reference=<float> Set reference loudness in LUFS.
--r128-compatible Calibrate output according to EBU R128.
--rg-compatible Calibrate output according to ReplayGain.
--db Use dB as unit rather then LU/TP.
--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).
--no-peak
--sample-peak
--true-peak
--range=on,--range Calculate loudness range (default).
--range=off,--no range 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.
--quiet Supress output to stdout.
--progress=on Display progress (default).
--progress=off Don't display progress.
--traditional Format output traditionally.
--command=<string> Run command on each track.
--overwrite Overwrite already existing output files.
--in-place Overwrite original files.
--loglevel=<integer> Set FFmpeg loglevel.
--regression Calculate linear regression between EBU R128
and ReplayGain.
--duration Print out duration.
--version Display version information.
--ffmpeg=<path> Directory of the FFmpeg shared libraries.
--sox=<path> Directory of the SoX shared libraries.
--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 sucessfully loaded.
FFmpeg sucessfully loaded.
analyzing ...
[1/9] "seq-3341-1-16bit.wav": -23.0 LUFS (-0.0 LU)
peak: -22.9 TPFS, range: 1.8 LU
[2/9] "seq-3341-2011-8_seq-3342-6-24bit-v02.wav": -23.0 LUFS (0.0 LU)
peak: -2.6 TPFS, range: 15.2 LU
[3/9] "seq-3341-2-16bit.wav": -33.0 LUFS (10.0 LU)
peak: -32.7 TPFS, range: 1.8 LU
[4/9] "seq-3341-3-16bit-v02.wav": -23.0 LUFS (0.0 LU)
peak: -23.0 TPFS, range: 13.0 LU
[5/9] "seq-3341-4-16bit-v02.wav": -23.0 LUFS (0.0 LU)
peak: -23.0 TPFS, range: 13.0 LU
[6/9] "seq-3341-5-16bit-v02.wav": -23.0 LUFS (-0.0 LU)
peak: -20.0 TPFS, range: 6.0 LU
[7/9] "seq-3341-6-5channels-16bit.wav": -23.0 LUFS (0.0 LU)
peak: -24.0 TPFS, range: 1.8 LU
[8/9] "seq-3341-6-6channels-WAVEEX-16bit.wav": -23.0 LUFS (0.0 LU)
peak: -24.0 TPFS, range: 1.8 LU
[9/9] "seq-3341-7_seq-3342-5-24bit.wav": -23.0 LUFS (0.0 LU)
peak: -8.9 TPFS, range: 6.3 LU
[ALBUM]: -23.2 LUFS (0.2 LU)
peak: -2.6 TPFS, range: 15.4 LU
done.
Test cases for Loudness Range (tech3342.pdf):
$ r128gain ~/ebu-loudness-test-setv03/*3342*.wav
SoX sucessfully loaded.
FFmpeg sucessfully loaded.
analyzing ...
[1/6] "seq-3341-2011-8_seq-3342-6-24bit-v02.wav": -23.0 LUFS (0.0 LU)
peak: -2.6 TPFS, range: 15.2 LU
[2/6] "seq-3341-7_seq-3342-5-24bit.wav": -23.0 LUFS (0.0 LU)
peak: -8.9 TPFS, range: 6.3 LU
[3/6] "seq-3342-1-16bit.wav": -22.6 LUFS (-0.4 LU)
peak: -20.0 TPFS, range: 10.0 LU
[4/6] "seq-3342-2-16bit.wav": -16.8 LUFS (-6.2 LU)
peak: -15.0 TPFS, range: 5.0 LU
[5/6] "seq-3342-3-16bit.wav": -20.0 LUFS (-3.0 LU)
peak: -20.0 TPFS, range: 20.0 LU
[6/6] "seq-3342-4-16bit.wav": -24.5 LUFS (1.5 LU)
peak: -20.0 TPFS, range: 15.0 LU
[ALBUM]: -21.2 LUFS (-1.8 LU)
peak: -2.6 TPFS, range: 17.1 LU
done.