R128GAIN: An EBU R128 compliant loudness scanner |
![]() ![]() |
R128GAIN: An EBU R128 compliant loudness scanner |
Jun 24 2011, 08:30
Post
#276
|
|
![]() Group: Members Posts: 455 Joined: 16-December 01 Member No.: 664 |
|
|
|
|
Jun 24 2011, 14:07
Post
#277
|
|
|
Group: Members Posts: 581 Joined: 17-August 09 Member No.: 72373 |
|
|
|
|
Jul 10 2011, 15:20
Post
#278
|
|
![]() Group: Members Posts: 396 Joined: 13-June 10 Member No.: 81467 |
@pbelkner, I appreciate your posting of the lib1770 code, and have a question about the gating constants. From my reading of bs1770_stats.c, the gating overlap is set to 50% of the of the 400 ms window. However, BS.1770-2 (03/2011) specifies a gating overlap of 75%. Shouldn't the overlap be 300 msec instead of 200 msec? Version 0.8.5 released: Home: http://r128gain.sourceforge.net/What's new?
![]() Example command line with block overlap 75% (partition 4) and gate -10.0: CODE $ r128gain --partition=4 --gate=-10.0 ../sounds/ebu-loudness-test-setv01/
SoX successfully loaded. FFmpeg successfully loaded. ../sounds/ebu-loudness-test-setv01 analyzing ... 1kHz Sine -20 LUFS-16bit.wav (1/16): -20.0 LUFS, -3.0 LU (peak: 0.100733: -19.9 dBFS) 1kHz Sine -26 LUFS-16bit.wav (2/16): -26.0 LUFS, 3.0 LU (peak: 0.050508: -25.9 dBFS) 1kHz Sine -40 LUFS-16bit.wav (3/16): -40.0 LUFS, 17.0 LU (peak: 0.010260: -39.8 dBFS) seq-3341-1-16bit.wav (4/16): -23.0 LUFS, -0.0 LU (peak: 0.071316: -22.9 dBFS) seq-3341-2-16bit.wav (5/16): -33.0 LUFS, 10.0 LU (peak: 0.023049: -32.7 dBFS) seq-3341-3-16bit.wav (6/16): -23.0 LUFS, 0.0 LU (peak: 0.071468: -22.9 dBFS) seq-3341-4-16bit.wav (7/16): -23.1 LUFS, 0.1 LU (peak: 0.070849: -23.0 dBFS) seq-3341-5-16bit.wav (8/16): -22.9 LUFS, -0.1 LU (peak: 0.100845: -19.9 dBFS) seq-3341-6-5channels-16bit.wav (9/16): -23.0 LUFS, 0.0 LU (peak: 0.063132: -24.0 dBFS) seq-3341-6-6channels-WAVEEX-16bit.wav (10/16): -23.0 LUFS, 0.0 LU (peak: 0.063132: -24.0 dBFS) seq-3341-7_seq-3342-5-24bit.wav (11/16): -23.0 LUFS, -0.0 LU (peak: 0.358340: -8.9 dBFS) seq-3341-8_seq-3342-6-24bit.wav (12/16): -23.2 LUFS, 0.2 LU (peak: 0.718297: -2.9 dBFS) seq-3342-1-16bit.wav (13/16): -22.6 LUFS, -0.4 LU (peak: 0.100088: -20.0 dBFS) seq-3342-2-16bit.wav (14/16): -16.8 LUFS, -6.2 LU (peak: 0.177971: -15.0 dBFS) seq-3342-3-16bit.wav (15/16): -20.0 LUFS, -3.0 LU (peak: 0.100088: -20.0 dBFS) seq-3342-4-16bit.wav (16/16): -24.5 LUFS, 1.5 LU (peak: 0.100073: -20.0 dBFS) ALBUM: -21.9 LUFS, -1.1 LU (peak: 0.718297: -2.9 dBFS) |
|
|
|
Jul 11 2011, 23:55
Post
#279
|
|
|
Group: Members Posts: 230 Joined: 21-February 05 Member No.: 20022 |
Is modern albums supposed to be attenuated by 20 dB using R128 compared to Replaygain (using Foobar2000 or Winamp to scan) which most often are 10-12 dB attenuation? Regards.
This post has been edited by punkrockdude: Jul 11 2011, 23:58 |
|
|
|
Jul 12 2011, 06:47
Post
#280
|
|
![]() Group: Members Posts: 396 Joined: 13-June 10 Member No.: 81467 |
|
|
|
|
Jul 12 2011, 18:02
Post
#281
|
|
|
Group: Members Posts: 581 Joined: 17-August 09 Member No.: 72373 |
ReplayGain uses a -14 dBFS reference level. R128 calls for a -23 dBFS reference level. All else being equal, ReplayGain playback will be 9 dB louder than playback on an R128-compliant system.
|
|
|
|
Jul 21 2011, 20:53
Post
#282
|
|
|
Group: Members Posts: 36 Joined: 31-December 10 Member No.: 86953 |
QUOTE ReplayGain uses a -14 dBFS reference level. Which I do not understand Considering this file: official pink noise reference file, and analyzing this file, I read: Integrated EBU R128 Loudness = -23.4 LUFS MaxTP = -22.9dBTP Loudness RMS average = -20.0 dBFS Max Peak = -10.87 dBFS (on a sample-peak meter) so nothing pointing to -14 dBFS !!!??? Jean |
|
|
|
Jul 22 2011, 04:53
Post
#283
|
|
|
Group: Members Posts: 581 Joined: 17-August 09 Member No.: 72373 |
You are apparently studying the original ReplayGain proposal. The file you link to is a -20 dB reference. Here's the current specification. Specifically read this. Have a look at note 9. All RG implementations are using the -14 dB reference.
Please let us know where this old information still exists. We'd like to get it corrected if possible. |
|
|
|
Jul 22 2011, 06:47
Post
#284
|
|
![]() Group: Members Posts: 396 Joined: 13-June 10 Member No.: 81467 |
You are apparently studying the original ReplayGain proposal. The file you link to is a -20 dB reference. Here's the current specification. Specifically read this. Have a look at note 9. All RG implementations are using the -14 dB reference. Please let us know where this old information still exists. We'd like to get it corrected if possible. BTW: The link to Replaygain on the toplevel page at http://www.hydrogenaudio.org/forums/ (left, under "Hosted Sites") should be corrected. Currently it points to http://replaygain.org/ which gives an "domain has expired" message. |
|
|
|
Jul 22 2011, 08:00
Post
#285
|
|
|
Group: Members Posts: 36 Joined: 31-December 10 Member No.: 86953 |
@ Notat:
I took the information from here: http://www.hydrogenaudio.org/forums/index....aded&start= and downloaded the wav file http://replaygain.hydrogenaudio.org/proposal/ref_pink.wav I hope this helps to bring some light |
|
|
|
Aug 2 2011, 20:37
Post
#286
|
|
|
Group: Members Posts: 36 Joined: 31-December 10 Member No.: 86953 |
I was wondering how R128GAIN calculates the album tags for gain and peak:
if there is a batch of files, does R128GAIN refer on meta-tags (reads the "album" tag) or does it refer on the folder structure? Thank you for more information! Jean |
|
|
|
Aug 3 2011, 07:31
Post
#287
|
|
![]() Group: Members Posts: 396 Joined: 13-June 10 Member No.: 81467 |
I was wondering how R128GAIN calculates the album tags for gain and peak: if there is a batch of files, does R128GAIN refer on meta-tags (reads the "album" tag) or does it refer on the folder structure? Thank you for more information! Jean It refers to the folder structure. All media files (tracks) found in a folder (belonging directly to the folder, i.e. not to a sub-folder) are considered to form an album. |
|
|
|
Aug 3 2011, 18:22
Post
#288
|
|
|
Group: Members Posts: 36 Joined: 31-December 10 Member No.: 86953 |
Ok, thank you!
Jean |
|
|
|
Sep 25 2011, 20:07
Post
#289
|
|
![]() A/V Moderator Group: Moderator Posts: 1666 Joined: 30-April 02 From: Slovenia Member No.: 1922 |
is there a r128gain (or replaygain) ported back/implemented in ffmpeg as well?
This post has been edited by smok3: Sep 26 2011, 00:02 -------------------- PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung |
|
|
|
Sep 29 2011, 07:23
Post
#290
|
|
![]() Group: Members Posts: 396 Joined: 13-June 10 Member No.: 81467 |
is there a r128gain (or replaygain) ported back/implemented in ffmpeg as well? As far as I understand FFmpeg it converts a set of audio and video streams (taken from one ore more input files) into one otput file. AFAIK there is no notion of processing a set of input files (an album) in parallel. |
|
|
|
Oct 3 2011, 17:39
Post
#291
|
|
![]() Group: Members Posts: 396 Joined: 13-June 10 Member No.: 81467 |
Version 0.8.7 released:
Home: http://r128gain.sourceforge.net/What's new?
|
|
|
|
Oct 5 2011, 09:47
Post
#292
|
|
|
Group: Members Posts: 36 Joined: 31-December 10 Member No.: 86953 |
Hello,
getting the following error message: QUOTE 1kHz Sine -20 LUFS-16bit.wav (1/1) ... 'sox' is not recognized as an internal or external command, operable program or batch file. what have I to consider further? Thank you for your help! Jean |
|
|
|
Oct 5 2011, 10:30
Post
#293
|
|
![]() Group: Members Posts: 396 Joined: 13-June 10 Member No.: 81467 |
getting the following error message: QUOTE 1kHz Sine -20 LUFS-16bit.wav (1/1) ... 'sox' is not recognized as an internal or external command, operable program or batch file. Unfortunately I made an error in packaging the release and forgot to provide "sox.exe". You should be able to work around this by
Sorry for any inconvenience. |
|
|
|
Oct 5 2011, 12:18
Post
#294
|
|
|
Group: Members Posts: 36 Joined: 31-December 10 Member No.: 86953 |
Adding the path to sox.exe in my System's path was helpful.
But here is another issue: QUOTE SetDlgItemURL successfully loaded. SoX successfully loaded. FFmpeg successfully loaded. analyzing ... 1kHz Sine -20 LUFS-16bit.wav (1/1): -20.0 LUFS, -3.0 LU (peak: 0.100733: -19.9 dBFS) ALBUM: -20.0 LUFS, -3.0 LU (peak: 0.100733: -19.9 dBFS) writing ... 1kHz Sine -20 LUFS-16bit.wav (1/1) ... sox FAIL formats: can't open input file `E:\EBU': No such file or directory done. Done. Hit enter to continue ... or QUOTE SetDlgItemURL successfully loaded. SoX successfully loaded. FFmpeg successfully loaded. analyzing ... aaa.wav (1/1): -20.0 LUFS, -3.0 LU (peak: 0.100733: -19.9 dBFS) ALBUM: -20.0 LUFS, -3.0 LU (peak: 0.100733: -19.9 dBFS) writing ... aaa.wav (1/1) ... sox FAIL formats: can't open output file `%DN%\aaa.wav': No such file or directory done. Done. Hit enter to continue ... The path to the file to analyze is: E:\EBU Loudness\EBU Loudness Test Set v03 (wav) respectively E:\ and the audiofiles exist. Thank you Jean |
|
|
|
Oct 5 2011, 12:36
Post
#295
|
|
![]() lossyWAV Developer Group: Developer Posts: 1722 Joined: 11-April 07 From: Wherever here is Member No.: 42400 |
I suggest that you enclose the path in double quotation marks (") as Windows doesn't deal with spaces in path names very well.
-------------------- lossyWAV -q X | FLAC -8 ~= 308kbps
SGS III (Rooted) + 64GB |
|
|
|
Oct 5 2011, 12:38
Post
#296
|
|
![]() Group: Members (Donating) Posts: 770 Joined: 25-September 03 From: Umeå, Sweden Member No.: 9001 |
Nothing overly specific to Windows, of course. In my experience the UNIX world tends to be worse when it comes to not escaping spaces in command lines, as paths there typically do not contain them.
-------------------- Zao shang yong zao nong zao rang zao ren zao.
To, early in the morning, use a chisel to build a bathtub makes impatient people hot-tempered. |
|
|
|
Oct 5 2011, 13:01
Post
#297
|
|
![]() Group: Members Posts: 396 Joined: 13-June 10 Member No.: 81467 |
But here is another issue:
|
|
|
|
Oct 5 2011, 13:36
Post
#298
|
|
|
Group: Members Posts: 36 Joined: 31-December 10 Member No.: 86953 |
Thank you all for the quick replies!
Jean |
|
|
|
Oct 6 2011, 17:44
Post
#299
|
|
|
Group: Members Posts: 2 Joined: 6-October 11 Member No.: 94183 |
I've been talking to Peter for a while via emails and figured out it would contribute more to the community and the project if I shared my feedback here. Since the normalization standard got released to public a couple of months ago, I've been thinking about applying it to any kind of audio content including sound libraries. I'm a sound editor for Film/video games and I kept a close eye on the EBU R128 standard as a fast way to deliver sounds based on the same loudness content. From my little different tests with Peter, I noticed that R128GAIN doesn't allow more than 20 sounds in the input field. My goal is to normalize thousands of files using the command and I would love to see the application importing the content of an entire folder (including the sub-folders) or at least to select an unlimited amount of sound files from one folder.
The sound files I'm trying to normalize also contain metadata embedded withing the broadcast wav files that I entered with Soundminer ("Description", "Microphones used", "Recorder used", "Location", "Category", "Sub Category", "Comments" fields etc). I noticed that when using the command ( and batch processing the wav files), the new files created lost their metadata. This is a detail as you can back up the metadata from your original source files and re-apply it to the new ones but if this can be achieved, it would make a significant improvement for sound designers and sound editors who are not aware of that issue as I see a lot of potential in this application. Cheers, Jean-Edouard. |
|
|
|
Oct 8 2011, 13:42
Post
#300
|
|
![]() Group: Members Posts: 396 Joined: 13-June 10 Member No.: 81467 |
I noticed that R128GAIN doesn't allow more than 20 sounds in the input field. My goal is to normalize thousands of files I'm able to reproduce the error and hopefully will be able to fix it. Instead of entering all the files individually into the input field you may try just to enter the directory where all the files are located in. BTW: For this kind of processing you should switch off "True Peak" because it is not needed and switching off "True Peak" will increase performance dramatically. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 26th May 2013 - 02:03 |