Skip to content
Command line helper for performing linear audio loudness normalization using ffmpeg's loudnorm audio filter.
Rust
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Initial commit. Oct 15, 2019
.gitignore Initial commit. Oct 15, 2019
Cargo.lock Initial commit. Oct 15, 2019
Cargo.toml Initial commit. Oct 15, 2019
LICENSE-CLAP Initial commit. Oct 15, 2019
LICENSE.md Initial commit. Oct 15, 2019
README.md Updated README.md with corrected usage examples. Oct 15, 2019

README.md

ffmpeg-loudnorm-helper

License

Command line helper for performing linear audio loudness normalization using ffmpeg's loudnorm audio filter. Performs the loudness scanning pass of the given file and outputs the string of desired loudnorm options to be included in ffmpeg arguments. The program expects ffmpeg to be in your PATH.

This program is a much simpler substitute for a ffmpeg-normalize Python script.

Developed using the wonderful Clap crate.

Usage

ffmpeg-loudnorm-helper is designed to work using your shell's command substitution capability.

Bash example:

ffmpeg -i input.mov -c:v copy -c:a libopus $(ffmpeg-lh input.mov) normalized.mkv

Windows CMD:

for /f "tokens=*" %i in ('ffmpeg-lh input.mov') do ffmpeg -i input.mov -c:v copy -c:a libopus %i normalized.mkv

Full help available on --help switch.

How to build

Developed with stable Rust.

To build the code, go to the project directory and run:

$ cargo build --release

The executable will be target/release/ffmpeg-lh.

Contributing

This is a small helper utility which achieves its intended functionality, but if you know how to improve it, file a bug report via Issues.

License

ffmpeg-loudnorm-helper licensed under GNU General Public License version 3;

See LICENSE.md for full details.

You can’t perform that action at this time.