mkvmerge

Merge and extract multimedia streams. More information: <https://mkvtoolnix.download/doc/mkvmerge.html>.

Install

All systems
curl cmd.cat/mkvmerge.sh
Debian Debian
apt-get install mkvtoolnix
Ubuntu
apt-get install mkvtoolnix
Alpine
apk add mkvtoolnix
Arch Arch Linux
pacman -S mkvtoolnix-cli
image/svg+xml Kali Linux
apt-get install mkvtoolnix
Fedora
dnf install mkvtoolnix
Windows (WSL2)
sudo apt-get update sudo apt-get install mkvtoolnix
OS X
brew install mkvtoolnix
Raspbian
apt-get install mkvtoolnix
Docker
docker run cmd.cat/mkvmerge mkvmerge powered by Commando

Merge and extract multimedia streams. More information: <https://mkvtoolnix.download/doc/mkvmerge.html>.

  • Display information about a Matroska file:
    mkvmerge --identify path/to/file.mkv
  • Extract the audio from track 1 of a specific file:
    mkvextract tracks path/to/file.mkv 1:path/to/output.webm
  • Extract the subtitle from track 3 of a specific file:
    mkvextract tracks path/to/file.mkv 3:path/to/subs.srt
  • Add a subtitle track to a file:
    mkvmerge --output path/to/output.mkv path/to/file.mkv path/to/subs.srt

© tl;dr; authors and contributors