/mkv-bash-tools

A collection of BASH scripts for processing mkv files

Primary LanguageShellGNU General Public License v3.0GPL-3.0

mkv-bash-tools

Issue Count

mkv-transcode-flac

A BASH script that transcodes all FLAC tracks of a matroska file to Ogg Vorbis while preserving the track's name and language and it's default and forced flags as well as its delay.

Screen shot of mkv-transcode-flac

Depends on

mktemp
mkvmerge
mkvextract
oggenc (with FLAC decoder enabled)

Usage

chmod +x mkv-transcode-flac
./mkv-transcode-flac "My File.mkv"
This will create a new file called "My File [Ogg Vorbis].mkv".

For batch converting all .mkv files in the current directoy copy mkv-transcode-flac to a directory in your PATH and execute:
find -iname "*.mkv" -exec mkv-transcode-flac '{}' \;

mkv-transcode-dts

A BASH script that transcodes all DTS-HD Master Audio tracks of a matroska file to DTS Core while preserving the track's name and language and it's default and forced flags as well as its delay.

Depends on

mktemp
mkvmerge
mkvextract
ffmpeg (version 3.1 or higher)

Usage

chmod +x mkv-transcode-dts
./mkv-transcode-dts "My File.mkv"
This will create a new file called "My File [DTS Core].mkv".

For batch converting all .mkv files in the current directoy copy mkv-transcode-dts to a directory in your PATH and execute:
find -iname "*.mkv" -exec mkv-transcode-dts '{}' \;

mkv-remove-language

A BASH script that removes the audio track with the specified language from a matroska file.

Depends on

mkvmerge

Screen shot of mkv-remove-language

Usage

chmod +x mkv-remove-language
./mkv-remove-language "My File.mkv" "eng"
This will create a new file called "My File [without eng].mkv".

For batch processing all .mkv files in the current directoy copy mkv-remove-language to a directory in your PATH and execute:
find -iname "*.mkv" -exec mkv-remove-language '{}' "lang" \;

mkv-extract-subtitles

A BASH script that extracts subtitles from a matroska file.

Depends on

mkvmerge
mkvextract

Screen shot of mkv-extract-subtitles

Usage

chmod +x mkv-extract-subtitles
./mkv-extract-subtitles "My File.mkv"
This will create a new file for each subtitle of the mkv in the current directory.

For batch processing all .mkv files in a directoy:
find [path to directory] -iname "*.mkv" -exec [path to mkv-extract-subtitles] '{}' \;