jiixyj / libebur128

A library implementing the EBU R128 loudness standard.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Too loud after silence.

mikenrafter opened this issue · comments

I'm not sure how this relates to the standard this library's based upon, but, when I use this library (through wwmm's easyeffects) I find that after a silence of ~.3-.5s it's far too loud. It's only for a brief moment, then it goes back to whatever target dB it was set to.

I think this may have something to do with momentary loudness. A theoretical (because I'm not familiar enough with the library) solution could be, to implement a logarithmic multiplier drop-off with a threshold set below the target dB some value.

For example, lets say the audio drops by 5dB for 1s, then jumps back up by 10dB, that'd be too loud with the momentary function, but, if the momentary impact was plugged into a logarithmic function offset by the target dB and a silence-level, then it wouldn't be too loud, when it jumps back up. This all would also likely need to be tied into the input gain applied, though I'm not certain how exactly.

Anything? Does anyone else have this issue, or a configuration technique to hinder/disable this problem?

It's not clear to me what exactly is your issue, and it seems that it might be that you want to alter the standard on which this library is based (which you could implement on your side but would probably not make it into the libebur128 code which aims to be standard compliant).
Have you got some sample code and audio input with expected results and actual results ?
(edit) Maybe it is an issue you should raise with https://github.com/wwmm/easyeffects if their autogain feature does not match your expectations.