https://github.com/dfaust/mkv-bash-tools
A collection of BASH scripts for processing mkv files
https://github.com/dfaust/mkv-bash-tools
command-line-app dts extractor matroska mkv shell-script subtitles tools transcoder
Last synced: 6 months ago
JSON representation
A collection of BASH scripts for processing mkv files
- Host: GitHub
- URL: https://github.com/dfaust/mkv-bash-tools
- Owner: dfaust
- License: gpl-3.0
- Archived: true
- Created: 2016-07-11T16:41:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-02-14T19:05:42.000Z (over 4 years ago)
- Last Synced: 2024-08-02T16:08:51.081Z (about 1 year ago)
- Topics: command-line-app, dts, extractor, matroska, mkv, shell-script, subtitles, tools, transcoder
- Language: Shell
- Homepage:
- Size: 53.7 KB
- Stars: 26
- Watchers: 2
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mkv-bash-tools
[](https://codeclimate.com/github/HessiJames/mkv-bash-tools)
## Warning: These scripts are outdated and won't work with current versions of mkvmerge
I'm keeping them here because I might update them at some point - but no promises.
## 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.

### 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

### 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
### Usage
`chmod +x mkv-extract-subtitles`
`./mkv-extract-subtitles "My File.mkv"`
This will create a new file for each subtitle in the current directory.For batch processing all .mkv files in the current directoy copy mkv-extract-subtitles to a directory in your PATH and execute:
`find -iname "*.mkv" -exec mkv-extract-subtitles '{}'\;`