Skip to content

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

License

Notifications You must be signed in to change notification settings

kevinlekiller/mkvrg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published