Audio volume analysis with FFmpeg

FFmpeg can be used for analysing audio levels. Its quite handy because it can be scripted and then used for volume normalisation.

Lets measure traditional RMS volume levels used in K-System with EBU tech 3205-E 10 ms peaks. This is measured in FFMpeg by plugin astats. It can measure a lot of things but we go just for dB peak, RMS level integrated over entire song and RMS Peak (3205-E):

ffmpeg -i <input file> -map 0 -map -v -filter:a astats=length=0.01:measure_overall=0:measure_perchannel=Peak_level+RMS_level+RMS_peak -f null NUL