MKV (Matroska)
MKV is a container designed to hold almost anything in one file: many audio tracks, many subtitle tracks, chapters and attachments. It says nothing about the codecs inside.
At a glance
- MIME type
- video/x-matroska
- Extensions
- .mkv
- Kind
- Video
- Compression
- Container format
- Type
- Container (holds encoded streams)
- Transparency
- Not supported
- Bit depth
- depends on the codecs inside
File structure
Matroska uses EBML, a nested element structure with a Segment that holds Info, Tracks, Chapters and Clusters. Each track declares its own codec, language and name, which is why an MKV can carry twelve subtitles and still be readable by a player that supports the codecs.
How the data is compressed
The container compresses nothing. Video and audio inside are usually H.264, HEVC, AV1, AAC, DTS or FLAC. Because tracks are independent, the same file can hold a 4K HEVC video track and a stereo AAC track for phones.
Where it is accepted
Playable on Android, Windows with a suitable player (VLC, MPC), smart TVs and most media boxes. Apple platforms are the weak side: QuickTime and the built-in iOS player do not open MKV, so users usually convert to MP4 first.
Strengths
- Multiple audio and subtitle tracks with languages and names.
- Codec-agnostic: any reasonable codec can be muxed in.
- Chapters, attachments and soft subtitles are first-class citizens.
Weaknesses
- Not supported by Apple built-in players, so it often needs conversion.
- Hardware decoding depends entirely on the codecs inside, not on MKV.
- Streaming support is poor compared with MP4; seeking can require an index.
Typical uses
- Archiving a film with several dubs and subtitle tracks.
- Delivering soft subtitles without burning them into the picture.
- Fan-subbed releases and multi-language teaching material.
Common problems
- An MKV full of PGS bitmap subtitles cannot be converted to SRT — the text does not exist as text.
- Renaming .mkv to .mp4 does not remux anything and usually breaks playback.
- Some players ignore the default track flag and start with the wrong audio.