Skip to main content

Normalize audio via ffmpeg

Project description

# ffmpeg-normalize

[![Build Status](https://travis-ci.org/slhck/ffmpeg-normalize.svg?branch=master)](https://travis-ci.org/slhck/ffmpeg-normalize)

A utility for batch-normalizing audio using ffmpeg.

This program normalizes media files to a certain loudness level using the EBU R128 loudness normalization procedure. It can also perform RMS-based normalization (where the mean is lifted or attenuated), or peak normalization to a certain target level.

Batch processing of several input files is possible, including video files.

Contents:

- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Description](#description)
- [Examples](#examples)
- [Detailed Options](#detailed-options)
- [FAQ](#faq)

-------------

## Requirements

- Python 2.7 or 3
- ffmpeg v3.1 or above from <http://ffmpeg.org/> installed in your \$PATH

## Installation

pip3 install ffmpeg-normalize

Or download this repository, then run `pip install .`.

## Usage

ffmpeg-normalize [-h] [-o OUTPUT [OUTPUT ...]] [-of OUTPUT_FOLDER] [-f]
[-d] [-v] [-n] [--version] [-nt {ebu,rms,peak}]
[-t TARGET_LEVEL] [-p]
[-lrt LOUDNESS_RANGE_TARGET]
[-tp TRUE_PEAK] [--offset OFFSET] [--dual-mono]
[-c:a AUDIO_CODEC] [-b:a AUDIO_BITRATE]
[-ar SAMPLE_RATE] [-vn] [-c:v VIDEO_CODEC] [-sn] [-mn]
[-e EXTRA_OUTPUT_OPTIONS] [-ofmt OUTPUT_FORMAT]
[-ext EXTENSION]
input [input ...]

For more information, run `ffmpeg-normalize -h`, or read on.

## Description

Please read this section for a high level introduction.

**What does the program do?**

The program takes one or more input files and, by default, writes them to a folder called `normalized`, using an `.mkv` container. All audio streams will be normalized so that they have the same (perceived) volume.

**How do I specify the input?**

Just give the program one or more input files as arguments. It works with most media files.

**How do I specify the output?**

You can specify one output file name for each input file with the `-o` option. In this case, the container format (e.g. `.wav`) will be inferred from the file name extension that you've given.

If you don't specify the output file name for an input file, the container format will be MKV, and the output will be written to `normalized/<input>.mkv`.

Using the `-ext` option, you can supply a different output extension common to all output files, e.g. `-ext m4a`.

**What will get normalized?**

By default, all streams from the input file will be written to the output file. For example, if your input is a video with two language tracks and a subtitle track, both audio tracks will be normalized independently. The video and subtitle tracks will be copied over to the output file.

**What codec is chosen?**

The default audio encoding method is uncompressed PCM (`pcm_s16le`) to avoid introducing compression artifacts. This will result in a much higher bitrate than you might want, for example if your input files are MP3s.

Some containers (like MP4) also cannot handle PCM audio. If you want to use such containers and/or keep the file size down, use `-c:a` and specify an audio codec (e.g., `-c:a aac` for ffmpeg's built-in AAC encoder).

## Examples

Normalize two WAV files and write them to the specified output files with uncompressed PCM WAV as audio codec:

ffmpeg-normalize file1.wav file2.wav -o file1-normalized.wav -o file2-normalized.wav

Normalize a number of videos in the current folder and write them to a folder called `normalized`, converting all audio streams to AAC with 192 kBit/s.

ffmpeg-normalize *.mkv -c:a aac -b:a 192k

For Windows, the above would be written as a loop:

for %%f in ("*.mkv") do ffmpeg-normalize "%%f" -c:a aac -b:a 192k

Normalize an MP3 file and write an MP3 file (you have to explicitly specify the encoder):

ffmpeg-normalize input.mp3 -c:a libmp3lame -b:a 320k -o output.mp3

Normalize many files, keeping PCM audio, but choosing a different container:

ffmpeg-normalize *.wav -c:a pcm_s16le -ext aif

Instead of EBU R128, one might just want to use simple peak normalization to 0 dB:

ffmpeg-normalize test.wav --normalization-type peak --target-level 0 --output normalized.wav
ffmpeg-normalize test.wav -nt peak -t 0 -o normalized.wav

You can (if you really need to!) also overwrite your input file. Warning, this will destroy data:

ffmpeg-normalize input.mp4 -o input.mp4 -f

If you need some fancy extra options, such as setting `vbr` for the `libfdk_aac` encoder, pass them to the `-e`/`--extra-options` argument:

ffmpeg-normalize input.m4a -c:a libfdk_aac -e='-vbr 3' -o output.m4a

Further examples? Please submit a PR so I can collect them.

## Detailed Options

File Input/output:

- `input`: Input media file(s)

- `-o OUTPUT [OUTPUT ...], --output OUTPUT [OUTPUT ...]`: Output file names.

Will be applied per input file.

If no output file name is specified for an input file, the output files
will be written to the default output folder with the name `<input>.<ext>`, where `<ext>` is the output extension (see `-ext` option).

- `-of OUTPUT_FOLDER, --output-folder OUTPUT_FOLDER`: Output folder (default: `normalized`)

This folder will be used for input files that have no explicit output name specified.

General:

- `-f, --force`: Force overwrite existing files

- `-d, --debug`: Print debugging output

- `-v, --verbose`: Print verbose output

- `-n, --dry-run`: Do not run normalization, only print what would be done

- `-pr`, `--progress`: Show progress bar for files and streams

- `--version`: Print version and exit

Normalization:

- `-nt {ebu,rms,peak}, --normalization-type {ebu,rms,peak}`: Normalization type (default: `ebu`).

EBU normalization performs two passes and normalizes according to EBU R128.

RMS-based normalization brings the input file to the specified RMS level.

Peak normalization brings the signal to the specified peak level.

- `-t TARGET_LEVEL, --target-level TARGET_LEVEL`: Normalization target level in dB/LUFS (default: -23).

For EBU normalization, it corresponds to Integrated Loudness Target in LUFS. The range is -70.0 - -5.0.

Otherwise, the range is -99 to 0.

- `-p, --print-stats`: Print first pass loudness statistics formatted as JSON to stdout.

Ebu R128 Normalization:

- `-lrt LOUDNESS_RANGE_TARGET, --loudness-range-target LOUDNESS_RANGE_TARGET`: EBU Loudness Range Target in LUFS (default: 7.0).

Range is 1.0 - 20.0.

- `-tp TRUE_PEAK, --true-peak TRUE_PEAK`: EBU Maximum True Peak in dBTP (default: -2.0).

Range is -9.0 - +0.0.

- `--offset OFFSET`: EBU Offset Gain (default: 0.0).

The gain is applied before the true-peak limiter.
Range is -99.0 - +99.0.

- `--dual-mono`: Treat mono input files as "dual-mono".

If a mono file is intended for playback on a stereo system, its EBU R128 measurement will be perceptually incorrect. If set, this option will compensate for this effect. Multi-channel input files are not affected by this option.

Audio Encoding:

- `-c:a AUDIO_CODEC, --audio-codec AUDIO_CODEC`: Audio codec to use for output files.

See `ffmpeg -encoders` for a list.

Will use PCM audio with input stream bit depth by default.

- `-b:a AUDIO_BITRATE, --audio-bitrate AUDIO_BITRATE`: Audio bitrate in bits/s, or with K suffix.

If not specified, will use codec default.

- `-ar SAMPLE_RATE, --sample-rate SAMPLE_RATE`: Audio sample rate to use for output files in Hz.

Will use input sample rate by default.

Other Encoding Options:

- `-vn, --video-disable`: Do not write video streams to output

- `-c:v VIDEO_CODEC, --video-codec VIDEO_CODEC`: Video codec to use for output files (default: 'copy').

See `ffmpeg -encoders` for a list.

Will attempt to copy video codec by default.

- `-sn, --subtitle-disable`: Do not write subtitle streams to output

- `-mn, --metadata-disable`: Do not write metadata to output

- `-cn, --chapters-disable`: Do not write metadata to output

Output Format:

- `-e EXTRA_OUTPUT_OPTIONS, --extra-output-options EXTRA_OUTPUT_OPTIONS`: Extra output options list.

A list of extra ffmpeg command line arguments.

You can either use a JSON-formatted list (i.e., a list of comma-separated, quoted elements within square brackets), or a simple string of space-separated arguments.

If JSON is used, you need to wrap the whole argument in quotes to prevent shell expansion and to preserve literal quotes inside the string. If a simple string is used, you need to specify the argument with `-e=`.

Examples: `-e '[ "-vbr", "3" ]'` or `-e="-vbr 3"`

- `-ofmt OUTPUT_FORMAT, --output-format OUTPUT_FORMAT`: Media format to use for output file(s).

See `ffmpeg -formats` for a list.

If not specified, the format will be inferred by ffmpeg from the output file name. If the output file name is not explicitly specified, the extension will govern the format (see '--extension' option).

- `-ext EXTENSION, --extension EXTENSION`: Output file extension to use for output files that were not explicitly specified. (Default: `mkv`)

The program additionally respects environment variables:

- `TMP` / `TEMP` / `TMPDIR`

Sets the path to the temporary directory in which files are
stored before being moved to the final output directory.
Note: You need to use full paths.

- `FFMPEG_PATH`

Sets the full path to an `ffmpeg` executable other than
the system default.


## FAQ

### After updating, this program does not work as expected anymore!

You are probably using a 0.x version of this program. There are significant changes to the command line arguments and inner workings of this program, so please adapt your scripts to the new one. Those changes were necessary to address a few issues that kept piling up; leaving the program as-is would have made it hard to extend it. You can continue using the old version (find it under *Releases* on GitHub or request the specific version from PyPi), but it will not be supported anymore.

### The program doesn't work because the "loudnorm" filter can't be found

Make sure you run ffmpeg v3.1 or higher and that `loudnorm` is part of the output when you run `ffmpeg -filters`. Many distributions package outdated ffmpeg 2.x versions, or (even worse), Libav's `ffmpeg` disguising as a real `ffmpeg` from the FFmpeg project.

Some ffmpeg builds also do not have the `loudnorm` filter enabled.

You can always download a static build from [their website](http://ffmpeg.org/download.html) and use that.

If you have to use an outdated ffmpeg version, you can only use `rms` or `peak` as normalization types, but I can't promise that the program will work correctly.

### Should I use this to normalize my music collection?

When you run `ffmpeg-normalize` and re-encode files with MP3 or AAC, you will inevitably introduce [generation loss](https://en.wikipedia.org/wiki/Generation_loss). Therefore, I do not recommend running this on your precious music collection, unless you have a backup of the originals or accept potential quality reduction. If you just want to normalize the subjective volume of the files without changing the actual content, consider using [MP3Gain](http://mp3gain.sourceforge.net/) and [aacgain](http://aacgain.altosdesign.com/).

### Why are my files MKV now?

MKV was chosen as a default output container since it handles almost every possible combination of audio, video, and subtitle codecs. If you know which audio/video codec you want, and which container is supported, use the output options to specify the encoder and output file name manually.

### The conversion does not work and I get a cryptic ffmpeg error!

One possible reason is that the input file contains some streams that cannot be mapped to the output file. Examples:

- You are trying to normalize a movie file, writing to a `.wav` or `.mp3` file. WAV/MP3 files only support audio, not video. Disable video and subtitles with `-vn` and `-sn`, or choose a container that supports video (e.g. `.mkv`).

- You are trying to normalize a file, writing to an `.mp4` container. This program defaults to PCM audio, but MP4 does not support PCM audio. Make sure that your audio codec is set to something MP4 containers support (e.g. `-c:a aac).

The default output container is `.mkv` as it will support most input stream types. If you want a different output container, [make sure that it supports](https://en.wikipedia.org/wiki/Comparison_of_container_file_formats) your input file's video, audio, and subtitle streams (if any).

Also, if there is some other broken metadata, you can try to disable copying over of metadata with `-mn`.

### What are the different normalization algorithms?

- **EBU R128** is an EBU standard that is commonly used in the broadcasting world. The normalization is performed using a psychoacoustic model that targets a subjective loudness level measured in LUFS (Loudness Unit Full Scale). R128 is subjectively more accurate than any peak or RMS-based normalization. More info on R128 can be found in the [official document](https://tech.ebu.ch/docs/r/r128.pdf) and [the `loudnorm` filter description](http://k.ylo.ph/2016/04/04/loudnorm.html) by its original author.

- **Peak Normalization** analyzes the peak signal level in dBFS and increases the volume of the input signal such that the maximum in the output is 0 dB (or any other chosen threshold). Since spikes in the signal can cause high volume peaks, peak normalization might still result in files that are subjectively quieter than other, non-peak-normalized files.

- **RMS-based Normalization** analyzes the [RMS power](https://en.wikipedia.org/wiki/Root_mean_square#Average_power) of the signal and changes the volume such that a new RMS target is reached. Otherwise it works similar to peak normalization.

### Couldn't I just run `loudnorm` with ffmpeg?

You absolutely can. However, you can get better accuracy and linear normalization with two passes of the filter. Since ffmpeg does not allow you to automatically run these two passes, you have to do it yourself and parse the output values from the first run. If this program is too over-engineered for you, you could also use an approach such as featured [in this Ruby script](https://gist.github.com/kylophone/84ba07f6205895e65c9634a956bf6d54) that performs the two `loudnorm` passes.

### Can I buy you a beer / coffee / random drink?

If you found this program useful and feel like giving back, feel free to send a donation [via PayPal](https://paypal.me/WernerRobitza).

# License

The MIT License (MIT)

Copyright (c) 2015-2018 Werner Robitza

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


### Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v1.13.11](https://github.com/slhck/ffmpeg-normalize/compare/v1.3.10...v1.13.11)

> 16 April 2019

- move HISTORY.md to CHANGELOG.md [`6773380`](https://github.com/slhck/ffmpeg-normalize/commit/6773380d43142aecca12b5e6b900e0b58b976495)
- add release script [`7f92904`](https://github.com/slhck/ffmpeg-normalize/commit/7f9290434b3829874749828ea94d7c75e551e6b8)
- add small developer guide on releasing [`a090628`](https://github.com/slhck/ffmpeg-normalize/commit/a0906289aa6c55e29a088a617d0d69d467422cdf)

#### [v1.3.10](https://github.com/slhck/ffmpeg-normalize/compare/v1.3.9...v1.3.10)

> 22 February 2019

- cap measured input loudness, fixes #92 [`#92`](https://github.com/slhck/ffmpeg-normalize/issues/92)
- bump version [`4675a94`](https://github.com/slhck/ffmpeg-normalize/commit/4675a94fab13609fffa2b79ed15a7a1676c4291a)

#### [v1.3.9](https://github.com/slhck/ffmpeg-normalize/compare/v1.3.7...v1.3.9)

> 10 January 2019

- clarify extra argument options, move to main entry point [`bb94f74`](https://github.com/slhck/ffmpeg-normalize/commit/bb94f744ab275bd7376219f247da32491f4320c4)
- Update issue templates [`dfc3265`](https://github.com/slhck/ffmpeg-normalize/commit/dfc3265c599fa0c1e24c6e40afed35a5c8c044d9)
- improve readme [`8013626`](https://github.com/slhck/ffmpeg-normalize/commit/801362699d216457ae932f6f5f8c068a7a584976)

#### [v1.3.7](https://github.com/slhck/ffmpeg-normalize/compare/v1.3.6...v1.3.7)

> 28 October 2018

- copy metadata from individual streams, fixes #86 [`#86`](https://github.com/slhck/ffmpeg-normalize/issues/86)
- bump version [`be39298`](https://github.com/slhck/ffmpeg-normalize/commit/be392988326bfa0b862d78a19d325c291ad0bcbf)
- add python version for pyenv [`c2cbd1b`](https://github.com/slhck/ffmpeg-normalize/commit/c2cbd1b0a1f22b355355ccd1cc31efdbfa58e1f0)

#### [v1.3.6](https://github.com/slhck/ffmpeg-normalize/compare/v1.3.5...v1.3.6)

> 9 July 2018

- update README, fixes #79 and addresses #80 [`#79`](https://github.com/slhck/ffmpeg-normalize/issues/79)
- bump version [`ceec297`](https://github.com/slhck/ffmpeg-normalize/commit/ceec2976e7865cb1b9f0c2937acc9f50210fd092)

#### [v1.3.5](https://github.com/slhck/ffmpeg-normalize/compare/v1.3.4...v1.3.5)

> 12 June 2018

- bump version [`69ee1e3`](https://github.com/slhck/ffmpeg-normalize/commit/69ee1e33f4c35939e4136bdccdfc5a6dee0f26e0)
- minor README updates [`8cefd38`](https://github.com/slhck/ffmpeg-normalize/commit/8cefd38555380333ae59ef439c93188e0d3de9b5)
- fix documentation of TMPDIR parameter [`4554634`](https://github.com/slhck/ffmpeg-normalize/commit/4554634228380ba88605f316e6e3d008f2d3ffcc)

#### [v1.3.4](https://github.com/slhck/ffmpeg-normalize/compare/v1.3.3...v1.3.4)

> 5 May 2018

- new way to specify extra options [`20ec9da`](https://github.com/slhck/ffmpeg-normalize/commit/20ec9da76a0880ff8915ff64bf88e00ece4e426b)
- bump version [`bd50111`](https://github.com/slhck/ffmpeg-normalize/commit/bd50111862be2b8ef07789affae6978c08824566)

#### [v1.3.3](https://github.com/slhck/ffmpeg-normalize/compare/v1.3.2...v1.3.3)

> 5 May 2018

- update README [`acf0654`](https://github.com/slhck/ffmpeg-normalize/commit/acf06548ecf9ff6c768f31dac65276622d1cf1c7)
- decode strings in extra options [`570f824`](https://github.com/slhck/ffmpeg-normalize/commit/570f82420b0429dac907e112d9707c0fba1de5cd)

#### [v1.3.2](https://github.com/slhck/ffmpeg-normalize/compare/v1.3.1...v1.3.2)

> 25 April 2018

- Stderror decoding ignoring utf8 encoding errors [`#69`](https://github.com/slhck/ffmpeg-normalize/pull/69)
- bump version [`ceb0a6c`](https://github.com/slhck/ffmpeg-normalize/commit/ceb0a6cde2505fddbe3b149a6bd647f8206fe0dd)

#### [v1.3.1](https://github.com/slhck/ffmpeg-normalize/compare/v1.3.0...v1.3.1)

> 24 April 2018

- do not require main module in setup.py, fixes #68 [`#68`](https://github.com/slhck/ffmpeg-normalize/issues/68)
- bump version [`feacd24`](https://github.com/slhck/ffmpeg-normalize/commit/feacd24c8c2a8de923bd569d94311cc2fa5b7871)

#### [v1.3.0](https://github.com/slhck/ffmpeg-normalize/compare/v1.2.3...v1.3.0)

> 15 April 2018

- WIP: progress bar [`3893c21`](https://github.com/slhck/ffmpeg-normalize/commit/3893c21c27e77913ce34665691ac29b57c2beb3e)
- progress bar [`974dcc7`](https://github.com/slhck/ffmpeg-normalize/commit/974dcc74e529ffea4774240e13b15a58a5ab77ce)
- remove dead code [`b5fb1fd`](https://github.com/slhck/ffmpeg-normalize/commit/b5fb1fdd8231b4497beddb63733dde1b44d6bd3c)

#### [v1.2.3](https://github.com/slhck/ffmpeg-normalize/compare/v1.2.2...v1.2.3)

> 11 April 2018

- add option to disable chapters, fixes #65, also fix issue with metadata [`#65`](https://github.com/slhck/ffmpeg-normalize/issues/65)
- bump version [`4b1b988`](https://github.com/slhck/ffmpeg-normalize/commit/4b1b988c48d6c0cc6560c1361e369c0f76221715)
- fix unit test [`99dd387`](https://github.com/slhck/ffmpeg-normalize/commit/99dd387b69e1d89d09a39e5ebbb6ae2069368baa)

#### [v1.2.2](https://github.com/slhck/ffmpeg-normalize/compare/v1.2.1...v1.2.2)

> 10 April 2018

- Set default loudness target to -23, fixes #48 [`#48`](https://github.com/slhck/ffmpeg-normalize/issues/48)
- bump version [`698e8b7`](https://github.com/slhck/ffmpeg-normalize/commit/698e8b79a5f522e7732f63a943a033618e7db4d9)

#### [v1.2.1](https://github.com/slhck/ffmpeg-normalize/compare/v1.2.0...v1.2.1)

> 4 April 2018

- Stdout and stderror decoding ignoring utf8 encoding errors [`#64`](https://github.com/slhck/ffmpeg-normalize/pull/64)
- bump version [`96c422a`](https://github.com/slhck/ffmpeg-normalize/commit/96c422a0103d025fab56692ddefbb421589eb8ec)

#### [v1.2.0](https://github.com/slhck/ffmpeg-normalize/compare/v1.1.0...v1.2.0)

> 22 March 2018

- add errors for impossible format combinations, fixes #60 [`#60`](https://github.com/slhck/ffmpeg-normalize/issues/60)
- fix ordering of output maps, fixes #63 [`#63`](https://github.com/slhck/ffmpeg-normalize/issues/63)
- improve documentation [`5e1d566`](https://github.com/slhck/ffmpeg-normalize/commit/5e1d566dcccc14256a64801e1ee11555a0c0858e)
- bump version [`88cfb56`](https://github.com/slhck/ffmpeg-normalize/commit/88cfb56a55134c9f6f1e9928ddacce10816578cc)

#### [v1.1.0](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.10...v1.1.0)

> 6 March 2018

- add option to print first pass statistics [`30ad9a8`](https://github.com/slhck/ffmpeg-normalize/commit/30ad9a80bdf944a84bcdeabfbb35f92d340e3b04)

#### [v1.0.10](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.9...v1.0.10)

> 4 March 2018

- restrict parsing to valid JSON part only, fixes #61 [`#61`](https://github.com/slhck/ffmpeg-normalize/issues/61)
- bump version [`3a59fb6`](https://github.com/slhck/ffmpeg-normalize/commit/3a59fb6aa1237132baf3ecbc773e304d13bce08f)
- add an example for MP3 encoding [`a6c3ece`](https://github.com/slhck/ffmpeg-normalize/commit/a6c3ece61bee2ee2d095057a766aa677eff22c18)
- update paypal link [`27ac79d`](https://github.com/slhck/ffmpeg-normalize/commit/27ac79d83c4359518f04c079a8f1a5275e349ce8)

#### [v1.0.9](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.8...v1.0.9)

> 8 February 2018

- do not check for file existence, fixes #57 [`#57`](https://github.com/slhck/ffmpeg-normalize/issues/57)
- do not print escape sequences on Windows [`3d0fecf`](https://github.com/slhck/ffmpeg-normalize/commit/3d0fecf4f1a17406cd2329ca39eccb7409452ed6)
- bump version [`563c0fb`](https://github.com/slhck/ffmpeg-normalize/commit/563c0fbf189d67466f5c9a5c2daf963b9c8f7c4f)
- add github issue template [`310b0ea`](https://github.com/slhck/ffmpeg-normalize/commit/310b0ea814ffda6b3a10dee39434be8d38583084)

#### [v1.0.8](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.7...v1.0.8)

> 1 February 2018

- do not check for ffmpeg upon module import [`f09cbe6`](https://github.com/slhck/ffmpeg-normalize/commit/f09cbe6e02aedc5e6437be5a54bd946d942be5d8)
- bump version [`3b6cde4`](https://github.com/slhck/ffmpeg-normalize/commit/3b6cde4fcbe35f378fd72ddb7a29c75e628e1da2)

#### [v1.0.7](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.6...v1.0.7)

> 1 February 2018

- fix issue with wrong adjustment parameters, fixes #54 [`#54`](https://github.com/slhck/ffmpeg-normalize/issues/54)
- rename function test [`e615bcc`](https://github.com/slhck/ffmpeg-normalize/commit/e615bcc360d3af0f24a5dbcb361d977c66a2a1de)
- bump version [`dec40b3`](https://github.com/slhck/ffmpeg-normalize/commit/dec40b3b235a64f0ed30210e78149e62d6df3a72)

#### [v1.0.6](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.5...v1.0.6)

> 30 January 2018

- allow setting FFMPEG_PATH and document TMP [`4bc8859`](https://github.com/slhck/ffmpeg-normalize/commit/4bc885908ca1d58321202a6b142a996cf46bb68d)

#### [v1.0.5](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.4...v1.0.5)

> 26 January 2018

- handle edge case for short input clips [`3e0d32f`](https://github.com/slhck/ffmpeg-normalize/commit/3e0d32fa1481910d6af3810d8145b049041c4b45)

#### [v1.0.4](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.3...v1.0.4)

> 26 January 2018

- bump version [`811ab59`](https://github.com/slhck/ffmpeg-normalize/commit/811ab5903740069c23cdc55c2f7264903d7bd6c6)
- do not try to remove nonexisting file in case of error in command [`5674589`](https://github.com/slhck/ffmpeg-normalize/commit/567458987a27dadb9ed3305ef7b33b0d9ecf7c53)

#### [v1.0.3](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.2...v1.0.3)

> 26 January 2018

- fix handling of temporary file [`756dc6b`](https://github.com/slhck/ffmpeg-normalize/commit/756dc6bf0069650998da546fd4ce49d7b0f73692)
- travis tests [`a0d6bad`](https://github.com/slhck/ffmpeg-normalize/commit/a0d6bad841251d81b317c84dd2e270d1f468bc8a)
- bump version [`3b123da`](https://github.com/slhck/ffmpeg-normalize/commit/3b123da0f2cce2d135133c0dd3b90a034e841dae)

#### [v1.0.2](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.1...v1.0.2)

> 25 January 2018

- fix bug with target level for peak/RMS [`70b537b`](https://github.com/slhck/ffmpeg-normalize/commit/70b537bf3ea6d0d703e31edf38fb258233405ee4)
- update documentation formatting [`6b31270`](https://github.com/slhck/ffmpeg-normalize/commit/6b31270079a3a3ad90d8dfd172c1c8b0d4aa20e0)
- update history [`36b7c6f`](https://github.com/slhck/ffmpeg-normalize/commit/36b7c6fe2f3c803ecb39cba6a9ebb64c5b847a87)

#### [v1.0.1](https://github.com/slhck/ffmpeg-normalize/compare/v1.0.0...v1.0.1)

> 24 January 2018

- set default target to -23 [`b84d7bc`](https://github.com/slhck/ffmpeg-normalize/commit/b84d7bcb05007b2160dabd6ce029915f64f8ff2b)
- bump version [`cf95796`](https://github.com/slhck/ffmpeg-normalize/commit/cf95796c44d2cdc2dbc9f3ee99cd3cbc4acb0bb6)

### [v1.0.0](https://github.com/slhck/ffmpeg-normalize/compare/v0.7.3...v1.0.0)

> 23 January 2018

- WIP: v1.0 rewrite [`fcdc506`](https://github.com/slhck/ffmpeg-normalize/commit/fcdc506b9a78df8010d776564715ec6e5a77c2b7)
- new feature detection, add documentation, contributors guide etc. [`37645b9`](https://github.com/slhck/ffmpeg-normalize/commit/37645b90ada8badd30369bcb9b918065dea992b9)
- add version info and test case for dry run [`20b6d50`](https://github.com/slhck/ffmpeg-normalize/commit/20b6d5025e8454adcab027e6ae2f3a4f3269b92d)

#### [v0.7.3](https://github.com/slhck/ffmpeg-normalize/compare/v0.7.2...v0.7.3)

> 9 October 2017

- use shutil.move instead of os.rename [`035e4df`](https://github.com/slhck/ffmpeg-normalize/commit/035e4dfe733cfb3122e62d27e154f813e1d72190)

#### [v0.7.2](https://github.com/slhck/ffmpeg-normalize/compare/v0.7.1...v0.7.2)

> 17 September 2017

- allow setting threshold to 0 [`5b63056`](https://github.com/slhck/ffmpeg-normalize/commit/5b630564db2ae4c99aaceafc54fd89d0078cd882)

#### [v0.7.1](https://github.com/slhck/ffmpeg-normalize/compare/v0.7.0...v0.7.1)

> 14 September 2017

- expand tilde and environment variables, fixes #36 [`#37`](https://github.com/slhck/ffmpeg-normalize/pull/37)
- expand tilde and environment variables, fixes #36 [`#36`](https://github.com/slhck/ffmpeg-normalize/issues/36)
- update README and indentation [`d9b359c`](https://github.com/slhck/ffmpeg-normalize/commit/d9b359cfe51c210cf5fe295e1e402dc416dcf6f0)
- update README w.r.t. loudnorm filter [`fa07e6e`](https://github.com/slhck/ffmpeg-normalize/commit/fa07e6efd8fd2e163d6660bb9801abb7aa4e8468)
- update HISTORY.md [`a35b7c8`](https://github.com/slhck/ffmpeg-normalize/commit/a35b7c8657c95a3cc5bbbf484d1874cbc2e724d2)

#### [v0.7.0](https://github.com/slhck/ffmpeg-normalize/compare/v0.6.0...v0.7.0)

> 2 August 2017

- logging and other improvements [`d7fcee4`](https://github.com/slhck/ffmpeg-normalize/commit/d7fcee415ab51fb7fc45cd72dd458b03583e6f53)
- autopep8 that thing [`2c0b1bf`](https://github.com/slhck/ffmpeg-normalize/commit/2c0b1bf8eedfba7d246c6c28e3154586e72c6ea9)
- logger improvements [`65266c8`](https://github.com/slhck/ffmpeg-normalize/commit/65266c86589d6d774d6f4cfca5e8e198a09799d1)

#### [v0.6.0](https://github.com/slhck/ffmpeg-normalize/compare/v0.5.1...v0.6.0)

> 31 July 2017

- allow overwriting input file, fixes #22 [`#22`](https://github.com/slhck/ffmpeg-normalize/issues/22)
- better handle cmd arguments [`801ee34`](https://github.com/slhck/ffmpeg-normalize/commit/801ee34f03a72e2c25f282e8f70818603c95235b)
- version bump [`0d9b5bd`](https://github.com/slhck/ffmpeg-normalize/commit/0d9b5bd4cff94bef55a0269795262b335835f03e)
- Update README.md [`fa32325`](https://github.com/slhck/ffmpeg-normalize/commit/fa32325d589db8c64225b4a75502f5687be4d954)

#### [v0.5.1](https://github.com/slhck/ffmpeg-normalize/compare/v0.4.1...v0.5.1)

> 4 April 2017

- define file encode for python3, fixes #24 [`#24`](https://github.com/slhck/ffmpeg-normalize/issues/24)
- use Markdown instead of RST for README/HISTORY [`9728ae3`](https://github.com/slhck/ffmpeg-normalize/commit/9728ae38de8b6374df2f261c8fa7ff6fd96e91df)
- minor documentation improvements [`b793489`](https://github.com/slhck/ffmpeg-normalize/commit/b793489609e4e8feaa0400ac90d8f867889dad5c)
- bump version and README [`76d6138`](https://github.com/slhck/ffmpeg-normalize/commit/76d613894d0aeca131e62b36080d066eaf3f3edb)

#### [v0.4.1](https://github.com/slhck/ffmpeg-normalize/compare/v0.1.3...v0.4.1)

> 13 February 2017

- Fix for #13 [`#21`](https://github.com/slhck/ffmpeg-normalize/pull/21)
- Add extended normalisation options [`#15`](https://github.com/slhck/ffmpeg-normalize/pull/15)
- add option for no prefix, fixes #20 [`#20`](https://github.com/slhck/ffmpeg-normalize/issues/20)
- handle spaces in path, fixes #12 [`#12`](https://github.com/slhck/ffmpeg-normalize/issues/12)
- update README, fixes #11 [`#11`](https://github.com/slhck/ffmpeg-normalize/issues/11)
- code cleanup, add option to set format and audio codec [`f08d680`](https://github.com/slhck/ffmpeg-normalize/commit/f08d680180764d30d5a4b90728c0955fc4ddaefc)
- bump to v0.2.0 [`2354c0b`](https://github.com/slhck/ffmpeg-normalize/commit/2354c0b0a4a07e8178fec687735f7d965c070969)
- update documentation [`78a202f`](https://github.com/slhck/ffmpeg-normalize/commit/78a202f7d218fcf72c156b2b31c647f5f5f4791d)

#### v0.1.3

> 15 December 2015

- Add MANIFEST.in [`#8`](https://github.com/slhck/ffmpeg-normalize/pull/8)
- Fixed ffmpeg v2.6.3 compatibility and docopt config [`#6`](https://github.com/slhck/ffmpeg-normalize/pull/6)
- Installation update to ffmpeg [`#5`](https://github.com/slhck/ffmpeg-normalize/pull/5)
- Rename project [`#4`](https://github.com/slhck/ffmpeg-normalize/pull/4)
- Docopt, Setuptools, avconv compatibility [`#2`](https://github.com/slhck/ffmpeg-normalize/pull/2)
- check for Windows .exe, fixes #10 [`#10`](https://github.com/slhck/ffmpeg-normalize/issues/10)
- check path and fix #9 [`#9`](https://github.com/slhck/ffmpeg-normalize/issues/9)
- various improvements, fixes #1 [`#1`](https://github.com/slhck/ffmpeg-normalize/issues/1)
- Removed Windows carraige returns from __main__.py [`35565da`](https://github.com/slhck/ffmpeg-normalize/commit/35565dac64e52b5da0620059378164973662aa2c)
- functional setup.py, communicate with avconv/ffmpeg about overwriting [`5660d92`](https://github.com/slhck/ffmpeg-normalize/commit/5660d9284fbba3c5f3d2c76d0332bfd6f3486ef0)
- initial commit [`ec4730f`](https://github.com/slhck/ffmpeg-normalize/commit/ec4730f6b686df0ffbdf2e145d9d4e03732cf88d)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ffmpeg-normalize, version 1.13.11
Filename, size File type Python version Upload date Hashes
Filename, size ffmpeg-normalize-1.13.11.tar.gz (2.0 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page