Author Topic: Feature request: BASS_ChannelGetLevel and LUFS @Ian  (Read 638 times)

udo

  • Posts: 49
Hi,

ist it possible to implement LUFS at BASS_ChannelGetLevel?
I mean EBU- R 128: https://tech.ebu.ch/docs/tech/tech3343.pdf
https://tech.ebu.ch/docs/tech/tech3342.pdf

customer demand and I guess its not right to calculate that from peaks.

thanks
« Last Edit: 24 Jul '18 - 18:57 by udo »

udo

  • Posts: 49
Re: Feature request: BASS_ChannelGetLevel and LUFS @Ian
« Reply #1 on: 31 Jul '18 - 19:49 »
Whats wrong with my wish?
Are new features undesirable not worth an answer?  ::)


Ian @ un4seen

  • Administrator
  • Posts: 21211
Re: Feature request: BASS_ChannelGetLevel and LUFS @Ian
« Reply #2 on: 1 Aug '18 - 13:54 »
Sorry about the delay, I missed this one.

I'm not familiar with that but it looks similar to Replaygain, where the loudness of a file is measured and stored in the file's tags and then a gain based on that is applied to hit a target level during playback. I'm not sure it would work as a BASS_ChannelGetLevel option, but the BASS_ATTRIB_VOL setting can be used for the gain application part. Perhaps there are dedicated libraries that you can use for the loudness measurement part. Google brings up this:

   https://github.com/jiixyj/libebur128

udo

  • Posts: 49
Re: Feature request: BASS_ChannelGetLevel and LUFS @Ian
« Reply #3 on: 2 Aug '18 - 09:35 »
Ok, we will check that library.
But i think LUFS is something similar to RMS, just another way to calculate.
Would be a great option (MONO, STEREO, RMS, LUFS) instead of use an additional library.

yps

  • Posts: 155
Re: Feature request: BASS_ChannelGetLevel and LUFS @Ian
« Reply #4 on: 23 Aug '18 - 21:36 »
libebur128 works very well with BASS (you simply set up the ebur128_state object and then call ebur128_add_frames_float from a DSPPROC).

Ian, the concept of R128 is very similar to ReplayGain; basically RMS calculation with some gates, plus a definition of sliding window sizes and target levels.

What's special about R128 then? It's an EBU standard that is now widely used in the broadcast industry, as a countermeasure against the "loudness war". Most European countries require TV stations to level their audio according to R128 now. Digital radio will follow at some point.

So it's the new professional standard for loudness normalization. And noone will remember ReplayGain in a few years ;)

Oh, and unlike ReplayGain, R128 is not about storing values in file tags or so. Just the bare loudness calculation.