Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 822 Bytes

mkv.md

File metadata and controls

33 lines (20 loc) · 822 Bytes

mkv

👋 Errors, improvements or other cool stuff? Let me know! 😀

MKVToolNix – Matroska tools for Linux/Unix and Windows

View info about a file

mkvinfo <filename.mkv>

Modify default audio & subtitle tracks

The track identifier is not the track number but (a|s) and its index starting from 1.

mkvpropedit <filename.mkv> \
  --edit track:a1 --set flag-default=0 \  # Disable first audio track (a1).
  --edit track:a2 --set flag-default=1 \  # Enable second audio track (a2).
  --edit track:s1 --set flag-default=0    # Disable first subtitles (s1).

Extract subtitles

Use mkvinfo to retrieve track_number (use the value specified for mkvextract).

mkvextract tracks <filename.mkv> <track_number>:<subtitles.srt>