Page 1 of 2
Loudness control
Posted: Wed Mar 02, 2016 3:06 pm
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!
Re: Loudness control
Posted: Wed Mar 02, 2016 4:30 pm
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
Re: Loudness control
Posted: Wed Mar 02, 2016 5:17 pm
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.
Re: Loudness control
Posted: Wed Mar 02, 2016 6:26 pm
by Guest
Try dynaudnorm ffmpeg filter.
regards,
mihai
Re: Loudness control
Posted: Wed Mar 02, 2016 6:56 pm
by admin
Thanks for the info
I'll look into it.
-steipal
Re: Loudness control
Posted: Wed Mar 02, 2016 8:03 pm
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.
Re: Loudness control
Posted: Wed Jun 01, 2016 10:37 am
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
Re: Loudness control
Posted: Thu Jun 02, 2016 10:41 am
by admin
Loudness-control is on my todo-list but I've been quite busy lately. You will just have to stay tuned...
-steipal
Re: Loudness control
Posted: Thu Jun 02, 2016 12:19 pm
by rholm
THanks Steipal, I have no problem waiting.
Thanks again, the software is just great!
Robert
Re: Loudness control
Posted: Thu Jun 02, 2016 12:29 pm
by admin
Thanks!
-steipal