Skip to content

Instantly share code, notes, and snippets.

@peterforgacs
Created November 9, 2019 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterforgacs/a3af41f4ce9ab90a38d6ed4e3cca3b96 to your computer and use it in GitHub Desktop.
Save peterforgacs/a3af41f4ce9ab90a38d6ed4e3cca3b96 to your computer and use it in GitHub Desktop.
const { normalize } = require('ffmpeg-normalize');
normalize({
input: 'input.mp4',
output: 'output.mp4',
loudness: {
normalization: 'ebuR128',
target:
{
input_i: -23,
input_lra: 7.0,
input_tp: -2.0
}
}
})
then(normalized => {
// Normalized
})
.catch(error => {
// Some error happened
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment