Page:
Software MKVToolNix
Pages
Backups
Butterbian XFCE
Butterbian
Butterknife
Cloudflare Tunnel
Common Issues
Contact
Discourse
Docker Nextcloud
Docker Setup
Filebrowser
Filedrop
Forgejo
Glossary
Home
Homelab Jitsi
Homelab Plex
Homelab UPS
Host
Landing Sites
Links
Micro Editor
Migrate To Codeberg
My Setup
Nextcloud Drop
Nextcloud USB Drive
Nextcloud Users
Onboarding
Recovery
Resources
SFTP
Site Map
Software Geany
Software MKVToolNix
Software Mount
Software Razer
Software mise
Tailscale
Thoughts Codeberg
Thoughts Kernel
Thoughts ProtonMail
Thoughts Rolling Release
Transmission
No results
3
Software MKVToolNix
Drew edited this page 2026-05-01 21:02:06 -04:00
Table of contents
MKVToolNix
Video walkthrough: YouTube
A toolkit for working with Matroska (.mkv) files — merging, splitting, editing metadata, extracting tracks. No re-encoding, so changes are fast and lossless.
Install
sudo apt install mkvtoolnix mkvtoolnix-gui
The four tools
| Tool | Purpose |
|---|---|
mkvmerge |
Combine video, audio, subtitle tracks into one MKV. The workhorse. |
mkvextract |
Pull individual tracks out of an MKV (audio, subs, attachments). |
mkvinfo |
Inspect an MKV's structure and metadata. |
mkvpropedit |
Edit metadata (title, language, default flags) in place — no re-encode. |
Plus MKVToolNix GUI (mkvtoolnix-gui) — graphical front-end, easiest for one-off jobs.
Common tasks
Merge a video with separate audio and subtitle files:
mkvmerge -o output.mkv video.mkv audio.aac subtitles.srt
Extract a subtitle track (track ID from mkvinfo):
mkvextract tracks input.mkv 2:subs.srt
Set a track's default-flag without re-encoding:
mkvpropedit input.mkv --edit track:a1 --set flag-default=1
Inspect file structure:
mkvinfo input.mkv
When it's the right tool
- Bundling movie + multiple subtitle/audio tracks into one file
- Splitting long recordings without re-encoding
- Fixing track language/title metadata that media players read wrong
- Pulling audio out of a video for separate editing
Related
- My Setup — recording and editing rig
Navigation
Quick Links
Projects
Server (discourse)
- Host
- Cloudflare Tunnel
- Tailscale
- SFTP
- Discourse
- Forgejo
- Filedrop
- Filebrowser
- Landing Sites
- Onboarding
- Backups
- Recovery
Window Managers
Homelab
Docker
Software
Thoughts
Archived
Connect
Butterbian — my Debian 13 distro · butterrepo — community APT repo · butterknife — TUI installer
justaguylinux.com · Butterforge · Butter Lab · The Churn · YouTube · Mastodon · Links · Contact · Support on Buy Me a Coffee
"Not an expert. Just A Guy." — Licensed CC BY-SA 4.0 · © 2026 JustAGuy Linux