ffmpeg-normalize batch-processes media to target loudness using EBU R128, RMS, or peak rules. It runs as a Python CLI on top of ffmpeg and can keep video streams intact.
Overview
ffmpeg-normalize is a utility for normalizing audio in many files at once. It adjusts media to a chosen loudness level using the EBU R128 procedure by default, and can instead apply RMS-based or peak normalization when configured.
The tool supports video containers while leaving video streams unchanged, selective normalization of audio streams, skipping files already near the target level, and joint album-style batch processing that preserves relative loudness between tracks. Optional output can record encoder settings in metadata, and summaries can list before-and-after levels per file.
You install it with pip (or run via uvx) alongside a recent ffmpeg and Python 3.10 or newer. A Docker image is documented for containerized runs. Shell completion is available for bash, zsh, and fish, and the same logic is exposed as a Python API for programmatic use.
Terminal output can include colored help, progress bars in interactive sessions, and concise ffmpeg error reporting. Presets cover common scenarios such as podcast, music, and streaming-video targets.
Key features
- EBU R128 two-pass or one-pass modes
- RMS and peak normalization types
- Video files with preserved video
- Album batch relative loudness
- Configurable presets
- Docker and Python API
- Shell tab completion
- Skip-already-at-target threshold
Use cases
- Normalizing podcast episode loudness
- Batch-adjusting music library levels
- Scripted media processing pipelines
- Album-wide consistent gain shifts