Audio Normalization Script for Python/ffmpeg. I've only tested it with Python 2.6, not Python 3.
The script RMS-normalizes media files (video, audio) to -26 dB RMS. It outputs PCM WAV files named as normalized-<input>.wav. It can also do peak normalization.
- Python
- Recent version of ffmpeg (download a static build if you don't want to compile) in your
$PATH
Very simple:
./normalize.py -i <input-file> -v
-f,--forceForce overwriting existing files-l LEVEL,--level LEVELlevel to normalize to (default: -26 dB)-p PREFIX,--prefix PREFIXNormalized file prefix (default: "normalized")-m,--maxNormalize to the maximum (peak) volume instead of RMS-v,--verboseEnable verbose output-n,--dry-runShow what would be done, do not convert