foobar2000 replaygain reference level seems low |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
foobar2000 replaygain reference level seems low |
Jul 29 2012, 01:09
Post
#1
|
|
|
Group: Members Posts: 19 Joined: 13-July 08 Member No.: 55753 |
The replaygain reference level in foobar2000 seems low.
I scanned http://replaygain.hydrogenaudio.org/proposal/ref_pink.wav from the original replaygain proposal, with a reference SPL of 89 dB. I was expecting to see a gain of +6 dB (as this file was supposed to generate +0 dB for 83 dB SPL). Instead I'm seeing +2.35 dB. Any ideas what's going on?
|
|
|
|
Jul 29 2012, 01:29
Post
#2
|
|
![]() Group: Developer Posts: 304 Joined: 29-April 11 From: Austria Member No.: 90198 |
ReplayGain is not peak-normalization. Increase the gain on the Playback page (preamp) if you want less 'loss of volume' but check that you don't run into clipping (that's what the prevent clipping according to peak option is for).
|
|
|
|
Jul 29 2012, 01:49
Post
#3
|
|
|
Group: Members Posts: 19 Joined: 13-July 08 Member No.: 55753 |
I'm completely confused about how peak normalization and pre-amp relate to what I asked. I'm not even complaining about a loss of volume. The gain here is positive after all. The gain just isn't as large as the replaygain spec says it should be.
The replaygain spec says this file (-14 dB pink noise) should have a gain of +6 dB. Clipping is not a concern here because the file has 10.9 dB of head room. As shown in the screen shows foobar only computes a replaygain of +2.35 dB. |
|
|
|
Jul 29 2012, 01:54
Post
#4
|
|
![]() Group: Admin Posts: 4219 Joined: 15-December 02 Member No.: 4082 |
The current ReplayGain scanner does not use the original ReplayGain algorithm any more. Instead, it uses the EBU R128 algorithm, converting the resulting LUFS 1:1 to a decibel offset to achieve a reference level of -18 LUFS.
|
|
|
|
Jul 29 2012, 02:06
Post
#5
|
|
![]() Group: Developer Posts: 304 Joined: 29-April 11 From: Austria Member No.: 90198 |
I'm sorry aconverse, I completely misunderstood what you were asking.
|
|
|
|
Jul 29 2012, 02:07
Post
#6
|
|
|
Group: Members Posts: 19 Joined: 13-July 08 Member No.: 55753 |
Thanks kode54, that clears things up
|
|
|
|
Jul 29 2012, 02:40
Post
#7
|
|
![]() Group: Developer Posts: 304 Joined: 29-April 11 From: Austria Member No.: 90198 |
Hmm but when using r128gain with the ref_pink file using the ReplayGain profile (-18 LUFS) the resulting file is boosted by 6 dB.
edit: hmm the result doesn't change if I change the target LUFS... This post has been edited by xnor: Jul 29 2012, 02:41 |
|
|
|
Jul 29 2012, 06:29
Post
#8
|
|
![]() Group: Admin Posts: 4219 Joined: 15-December 02 Member No.: 4082 |
|
|
|
|
Jul 29 2012, 11:49
Post
#9
|
|
![]() Group: Developer Posts: 304 Joined: 29-April 11 From: Austria Member No.: 90198 |
I see. When using EBU R128-2 it reports -23.4 LUFS for the ref_pink file.
Instead, it uses the EBU R128 algorithm, converting the resulting LUFS 1:1 to a decibel offset to achieve a reference level of -18 LUFS. -18 - (-23.4) = +5.4 dB, no? This post has been edited by xnor: Jul 29 2012, 20:13 |
|
|
|
Jul 29 2012, 20:54
Post
#10
|
|
![]() Group: Admin Posts: 4219 Joined: 15-December 02 Member No.: 4082 |
Maybe libebur128 needs some work, then. I found the same LUFS result with lib1770, regardless of using R128-1 or R128-2 mode.
lib1770 needs some work before it could be used in this scanner as well, as it doesn't support multi-threaded scanning, and my dodgy attempt to add that resulted in non-matching album gain levels. |
|
|
|
Jul 29 2012, 21:50
Post
#11
|
|
![]() Group: Developer Posts: 304 Joined: 29-April 11 From: Austria Member No.: 90198 |
R128-2 and -1 result in different LUFS here:
2: [1/1] "ref_pink.wav": -23.4 LUFS (0.4 LU) 1: [1/1] "ref_pink.wav": -23.5 LUFS (0.5 LU) edit: I don't know much about R128/BS.1770 or the libraries that implement them. Just wondering why there's such a big difference in fb2k from the +6 or +5.4 dB. edit2: I checked some music tracks and there the r128gain ebu r128-2 results line up fine with fb2k (referenced to -18 LUFS). Why wouldn't the ref_pink file? edit3: The VST plugin 'AC-R128' measures the ref_pink file with -20.4 LUFS. So maybe it's just r128gain that's wrong. This post has been edited by xnor: Jul 30 2012, 01:44 |
|
|
|
Jul 30 2012, 07:08
Post
#12
|
|
![]() Group: Admin Posts: 4219 Joined: 15-December 02 Member No.: 4082 |
I have modified a version of lib1770 which may be useful for testing with this or the example programs:
http://kode54.foobar2000.org/moo/lib1770.7z
|
|
|
|
Jul 30 2012, 16:33
Post
#13
|
|
|
Group: Developer (Donating) Posts: 2041 Joined: 19-October 01 From: Finland Member No.: 322 |
That ref_pink file is mono, and for some reason R128Gain thinks it is half as loud as stereo file. foobar2000 scans mono files as stereo.
|
|
|
|
Jul 30 2012, 18:59
Post
#14
|
|
![]() Group: Developer Posts: 304 Joined: 29-April 11 From: Austria Member No.: 90198 |
That ref_pink file is mono, and for some reason R128Gain thinks it is half as loud as stereo file. foobar2000 scans mono files as stereo. Indeed, that's the case, Case. Surprisingly even Adobe Audition has that behavior. +5.4 dB as mono, +2.4 dB as stereo. I just discovered that R128Gain has an option for this: "--mono=on,--mono Don't treat mono as stereo." edit: Maybe 'mono' means only the center channel is being used. But isn't it more common to play the mono files on the left and right channel (aka 'dual mono')? edit2: libebur128 http://www.hydrogenaudio.org/forums/index....st&p=751044 This post has been edited by xnor: Jul 30 2012, 19:05 |
|
|
|
Jul 31 2012, 07:08
Post
#15
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
I just discovered that R128Gain has an option for this: "--mono=on,--mono Don't treat mono as stereo." AFAIK this is not backed by EBU R128. The option was added because of user request. |
|
|
|
Jul 31 2012, 12:51
Post
#16
|
|
![]() Group: Developer Posts: 304 Joined: 29-April 11 From: Austria Member No.: 90198 |
AFAIK this is not backed by EBU R128. The option was added because of user request. The r128 doc doesn't say much at all. It's based on ITU-R BS.1770, which is the technical standard for measuring loudness. 1770-2 definitely does mention mono (center channel) and dual mono (left and right channel). This post has been edited by xnor: Jul 31 2012, 12:54 |
|
|
|
Aug 17 2012, 22:19
Post
#17
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
I have modified a version of lib1770 which may be useful for testing with this or the example programs: http://kode54.foobar2000.org/moo/lib1770.7z There's a new version of "lib1770" available:
|
|
|
|
May 4 2013, 23:36
Post
#18
|
|
![]() Group: Members Posts: 125 Joined: 15-July 06 From: Germany Member No.: 32930 |
The current ReplayGain scanner does not use the original ReplayGain algorithm any more. Instead, it uses the EBU R128 algorithm, converting the resulting LUFS 1:1 to a decibel offset to achieve a reference level of -18 LUFS. Is it possible to change the value to match dBpoweramp’s default of −23 LUFS? I haven’t found a preference for that. -------------------- FLAC.
|
|
|
|
May 5 2013, 16:55
Post
#19
|
|
|
Group: Members Posts: 35 Joined: 1-September 11 Member No.: 93415 |
The current ReplayGain scanner does not use the original ReplayGain algorithm any more. Instead, it uses the EBU R128 algorithm, converting the resulting LUFS 1:1 to a decibel offset to achieve a reference level of -18 LUFS. Is it possible to change the value to match dBpoweramp’s default of −23 LUFS? I haven’t found a preference for that. Is this the reason why foobar and dbpoweramp produce different RG values? |
|
|
|
May 5 2013, 18:16
Post
#20
|
|
|
Group: Members Posts: 457 Joined: 16-September 06 From: United States Member No.: 35261 |
|
|
|
|
May 6 2013, 10:55
Post
#21
|
|
|
Group: Members Posts: 306 Joined: 2-July 10 Member No.: 81991 |
Sorry to butt in with a really basic question: Since we're in a foobar2000 forum, I'm assuming you're using lib1770.dll in foobar2000. I can't find that file anywhere in my foobar2000 folders, though. How do you use it?
|
|
|
|
May 6 2013, 11:42
Post
#22
|
|
|
Group: Developer (Donating) Posts: 2041 Joined: 19-October 01 From: Finland Member No.: 322 |
Is it possible to change the value to match dBpoweramp’s default of −23 LUFS? I haven’t found a preference for that. Is this the reason why foobar and dbpoweramp produce different RG values? Yes. In dbpa one can change the setting to -18 LUFS. I'm disappointed in Spoon. He should know better and not break standards. |
|
|
|
May 6 2013, 11:45
Post
#23
|
|
|
Group: Developer (Donating) Posts: 2041 Joined: 19-October 01 From: Finland Member No.: 322 |
Sorry to butt in with a really basic question: Since we're in a foobar2000 forum, I'm assuming you're using lib1770.dll in foobar2000. I can't find that file anywhere in my foobar2000 folders, though. How do you use it? Your assumption is incorrect. foobar2000 uses libebur128 with some speed optimizations. |
|
|
|
May 6 2013, 11:56
Post
#24
|
|
|
Group: Members Posts: 306 Joined: 2-July 10 Member No.: 81991 |
Your assumption is incorrect. foobar2000 uses https://github.com/jiixyj/libebur128"]libebur128[/url] with some speed optimizations. Glad to know it's not me then but people posting unrelated info where it's confusing. |
|
|
|
May 6 2013, 22:26
Post
#25
|
|
![]() Group: Members Posts: 125 Joined: 15-July 06 From: Germany Member No.: 32930 |
Is it possible to change the value to match dBpoweramp’s default of −23 LUFS? I haven’t found a preference for that. Is this the reason why foobar and dbpoweramp produce different RG values? Yes. In dbpa one can change the setting to -18 LUFS. I'm disappointed in Spoon. He should know better and not break standards. From this thread: The proposed standard for Opus is R128 gain with a reference level of -23 LUFS. From Loudness Metering: ‘EBU Mode’ metering to supplement loudness normalisation in accordance with EBU R 128: QUOTE For an ‘EBU Mode’ meter, the target loudness level shall be -23.0 LUFS = 0.0 LU (as defined in EBU R 128). So dBpoweramp looks standard to me and that’s the reason I’d like to adjust foobar2000 rather than dBpoweramp. -------------------- FLAC.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 22:26 |