Skip to content

Command line helper for performing linear audio loudness normalization using ffmpeg's loudnorm audio filter.

License

Notifications You must be signed in to change notification settings

MadameMinty/ffmpeg-loudnorm-helper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Command line helper for performing linear audio loudness normalization using ffmpeg's loudnorm audio filter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%