A Python script to quickly compress the audio dynamic range of video files, preventing large volume fluctuations (e.g., to play a movie at night, or at low volume).
Note: Original file format and subtitles are preserved, video track remains untouched
- Python 3.6+
- FFmpeg (Add to PATH)
- colorama
pip install colorama
- Drag and drop file(s) directly onto the script (files that don't include an audio stream will be ignored)
- Select audio track (if multiple are available)
- Choose output directory
Modify CONFIG
at the top of the script to adjust:
- Audio codec and bitrate Default: AAC 320kbps
- Audio filter settings Default: Custom downmix to stereo (see FFmpeg documentation) and use of dynaudnorm for compression
- Console window size