I'm looking at a way to ensure an audio file doesn't ever get too loud, but I do not want to change the samples if it is under a given threshold.
For example, I would like the file to have a maximum of -24dB. Anything in the file which is between -70dB and -24dB should not be changed.
Is there a way to accomplish this using the loudnorm
extension of ffmpeg?
The following works if the input is over -24dB, but when it is under, it will increase the volume:
ffmpeg -i input.mp3 -vn -af loudnorm=I=-24 -ar 44.1k output.mp3
I'd like a way to decrease the volume only in areas where the input file is too loud.
limit=-30dB