Giter Site home page Giter Site logo

kevinlekiller / mkvrg Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 2.0 157 KB

Apply replaygain tags to matroska files without remuxing (gain is calculated using ffmpeg and tags are applied using mkvpropedit).

License: GNU General Public License v2.0

Shell 42.52% Python 57.48%
bash bash-script ffmpeg gplv2 mkvtoolnix replaygain replaygain-scanner replaygain-tags loudnorm normalization

mkvrg's Introduction

mkvrg

Apply replaygain tags to matroska files without remuxing (gain is calculated using ffmpeg and tags are applied using mkvpropedit).

Bash script for analyzing audio tracks in matroska files with ffmpeg and applying replaygain gain and peak tags with mkvpropedit, this avoids remuxing the matroksa file.

With mpv, you can add replaygain=track to mpv.conf to enable replaygain tag parsing.

With VLC, you can enable replaygain by clicking Tools -> Preferences -> Audio -> Replay gain mode.

Pass list of files or a directory to scan files, if you pass a directory it will recursively search in it for files.

It will only process files with these extensions: "mkv, mka, mk3d".

The default alrogrithm used for calculating gain and peak is ffmpeg's ebur128, this can be changed with the FFMPEGFILTER env variable.

Requires: ffmpeg mkvpropedit

examples:

./mkrvg --help                ; Shows help and a list of environment variables and exits.
./mkvrg                       ; Recursive search in current folder for matroska files.
./mkvrg test.mkv              ; Process test.mkv in current folder.
./mkvrg Videos/               ; Recursive search in Videos folder for matroska files.
./mkvrg test.mkv Videos/      ; Process test.mkv in current folder and recursive
                                search in Videos folder for matroska files.
FORCE=true ./mkvrg test.mkv   ; Process test.mkv even if it already has replaygain tags.
MINSIZE=+100M ./mkvrg         ; Recursive search in current folder for matroska
                                files larger than 100MiB.
FFMPEGFILTER=loudnorm ./mkvrg ; Use loudnorm ffmpeg filter to scan found files.

mkvrg_deprecated_do_not_use.py

This python script is outdated, use mkvrg instead.

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.