-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mono Loudness: Dual vs 1-Channel #42
Comments
Are you sure that the f32le wav file is mono? I've compared ffmpeg and libebur128 and they are showing the same behavior in my test:
I have generated the mono file with |
Hi I haven't been able to get the "loudness" command to find plugins so I can test it out myself. See the issue I raised in the loudness-scanner git. How does the loudness scan commandline handle mono files? I looked through the code and from scanner-common.h there is a struct scan_opts. This struct contains a field: force_dual_mono Is this TRUE or FALSE by default? If it is TRUE by default, then the loundness scan tool will be operating in dual mono mode for a mono audio file. Thanks! |
I got loudness-scanner working. It shows the same intregrated loudness value as ffmpeg for my mono file. But when I use libebur128 directly, using the default channel mode of left channel, I am getting a result that is about 3 LU less. Only if I set the channel mode to dual mono do I get the same integrated loudness as ffmpeg and loudness-scanner. This makes me believe loudness-scanner is working in dual mono mode. |
|
Thanks. I built minimal-example and ran it against my mono file. It returned the expected integrated loudness value. So now I'm trying to figure out why my custom code that uses libebur128 requires dual mono mode to get the same result. My custom code uses float 32-bit pcm data so I use the function ebur128_add_frames_float instead though. I'm not sure if that makes a difference. |
There have been numerous discussion in the EBU ploud group about the measure of mono signals. |
This one can be closed. |
Hello
I am a little confused about how loudness is calculated for a mono audio track.
If I only have a 1-speaker sound system, which mono mode is the correct one to use: left or right, center, or dual?
I believe by default libebur128 treats a mono track as a left channel mono track. You can of course explicitly set the channel to the other modes as well.
Here is my normalization example:
Start with a 2-channel stereo audio track
Convert it to mono using the standard median method
Measure the EBUR128 integrated loudness using the default libebur128 channel configuration: left channel
a. Let's assume the integrated loudness measured is -20 LUFS
Calculate the gain adjustment
a. Let's use a target reference of -16 LUFS
b. Then, the gain adjustment is +4 LU (dB)
Apply gain adjustment
a. So now the mono version will have an integrated loudness of -16 LUFS
Save mono track to as a f32le wav file.
If I then measure the integrated loudness using FFMPEG's ebur128 filter, I get -16 LUFS.
However, if I use libebur128 with the default channel configuration of left channel mono, I will get a value that is below -19 LUFS (-3 LU less).
If I use libebur128 and explicitly set the channel to dual mono channel configuration mode instead, I get -16 LUFS.
So this is where I am confused.
Shouldn't I have gotten -16 LUFS under the default libebur128 channel configuration for mono (left channel)?
Why does setting to dual mono give me the expected result of -16 LUFS?
Thanks!
The text was updated successfully, but these errors were encountered: