GithubHelp home page GithubHelp logo

charjac / ffmpeg-normalize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peterforgacs/ffmpeg-normalize

0.0 0.0 0.0 1.39 MB

:headphones: Audio loudness normalization with ffmpeg.

License: MIT License

JavaScript 61.38% TypeScript 38.62%

ffmpeg-normalize's Introduction

ffmpeg-normalize Build Status

sympact

๐ŸŽง Audio loudness normalization with ffmpeg.

Install

npm install ffmpeg-normalize

Usage

Ebu R128

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
        }
    },
    verbose: true
})
.then(normalized  => {
    // Normalized
})
.catch(error => {
    // Some error happened
});

API

normalize({ input, output, loudness, verbose })

Parameters:

  • input
  • output
  • loudness
  • verbose

input

Type: string
Required: true

Path to the input file.

output

Type: string
Required: true

Path to the output file.

loudness

Type: object
Required: true

Describes a target loudness.

verbose

Type: boolean
Required: false
Default: false

When true sends ffmpeg input to stdout.

loudness normalization

Type: string
Required: true
Options: ebuR128 (Experimental rms || peak )

The normalization method to use. The ebu R128 normalization uses a two pass method to measure the original values of the input file. The other normalization methods only need the input_i value set.

loudness input_i

Type: number
Required: true

ebu R128 normalization
Min: -70.0
Max: -5.0
Default: -23

rms and peak normalization (Experimental)
Min: -99
Max: 0
Default: -23

The normalization target level in dB/LUFS.

loudness input_lra

Type: number
Required: false
Min: 1.0
Max: 20.0
Default: 7.0

Loudness range.

loudness input_tp

Type: number
Required: false
Min: -9.0
Max: 0.0
Default: -2.0

True peak.

License

MIT ยฉ Peter Forgacs

ffmpeg-normalize's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.