Loudness control

Use this forum to request features. Maybe you'll get lucky!
tiler
Posts: 8
Joined: Wed Mar 02, 2016 2:59 pm

Loudness control

Post by tiler »

Amazing product! Thank you!
Some wishes:
- EBU R 128 and ITU 1770 loudness normalisation. I think it'll be very useful.
- Condition logic like Vantage Analysis can do - for example "IF width == 1920 and CODEC == DNxHD DO THIS ELSE DO THAT". It'' require some additional skill from users but it worth to.
Thank you again!
admin
Site Admin
Posts: 1681
Joined: Sat Feb 08, 2014 10:39 pm

Re: Loudness control

Post by admin »

Hi tiler, thank you for using FFAStrans and welcome to the forum!

Loudness request noted.

Conditional logic is featured in the upcoming 0.7.0 release. Stay tuned :-)

-steipal
tiler
Posts: 8
Joined: Wed Mar 02, 2016 2:59 pm

Re: Loudness control

Post by tiler »

Hi steipal!
ffmpeg has some features for normalisation. Recently I faced with this problem and I need some way to normalise a lot of files. I did this way with python and ffmpeg - maybe not the best but it was enough for me:
To get the current loudness:

Code: Select all

ffmpeg -nostats -i input_file -filter_complex ebur128 -f null
We'll get the current loudness level in LUFS.
Compute with python the difference between target level -23 LUFS and current level in dB:

Code: Select all

    def linearGain(iLUFS, goalLUFS=-23):
         """ takes a floating point value for iLUFS, returns the necessary
         multiplier for audio gain to get to the goalLUFS value """
         gainLog = -(iLUFS - goalLUFS)
         return 10 ** (gainLog / 20)
And finally correct the loudness level of file:

Code: Select all

ffmpeg -i input_file -af volume=linearGain -vcodec copy -acodec pcm_s16le output_file
Of course the better way is to get and remember audio codec from source file and use it final normalisation but I didn't have enough time for that and PCM was acceptable.
Maybe can save your time a little bit.
Guest

Re: Loudness control

Post by Guest »

Try dynaudnorm ffmpeg filter.
regards,
mihai
admin
Site Admin
Posts: 1681
Joined: Sat Feb 08, 2014 10:39 pm

Re: Loudness control

Post by admin »

Thanks for the info :-) I'll look into it.

-steipal
Guest

Re: Loudness control

Post by Guest »

dynaudnorm unfortunately can't help you to normalise level to the mentions standards (EBU R 128 and ITU 1770) - they are about integrated level but dyaudnorm normalises momentary level - "The Dynamic Audio Normalizer will "even out" the volume of quiet and loud sections" - it's another thing.
rholm
Posts: 27
Joined: Wed Jun 01, 2016 10:23 am

Re: Loudness control

Post by rholm »

Hi,

First I want to say THANK YOU for this excellent software!

The feature I am currently missing is the loudness integration. There are two functions that could be good to have:

1. Loudness Statistics - It could be useful to run some statistics on a file and get the data as variables. By doing this I could use the variables in txt reports or set conditions to copy files to certain folders etc if they are not within the expected loudness range.
https://ffmpeg.org/ffmpeg-filters.html#ebur128-1

2. Loudness correction - I guess this has to be done as two pass, but I guess it should be possible if reading the following article:
http://k.ylo.ph/2016/04/04/loudnorm.html

Thanks again for the software, this is absolutely great!
Robert
admin
Site Admin
Posts: 1681
Joined: Sat Feb 08, 2014 10:39 pm

Re: Loudness control

Post by admin »

Loudness-control is on my todo-list but I've been quite busy lately. You will just have to stay tuned...;-)

-steipal
rholm
Posts: 27
Joined: Wed Jun 01, 2016 10:23 am

Re: Loudness control

Post by rholm »

THanks Steipal, I have no problem waiting.

Thanks again, the software is just great!
Robert
admin
Site Admin
Posts: 1681
Joined: Sat Feb 08, 2014 10:39 pm

Re: Loudness control

Post by admin »

Thanks! :-)

-steipal
Post Reply