
Containers
Matroska was designed for exactly what AVI could not do
Matroska is named for the nested doll — containers inside containers, each one declaring what it holds.
The file is not the format · Medium
MKV arrived in 2002 with chapters, multiple audio tracks and subtitle support built in — everything AVI had been patched to fake.
A container shaped by AVI's limits
AVI held things it was never designed to hold. Released by Microsoft in 1992 as a wrapper for Video for Windows, it assumed one video stream and one audio stream, full stop. Everything else — soft subtitles, alternate language tracks, chapter markers — was bolted on through unofficial extensions that different players read differently and some ignored entirely. By the early 2000s, a growing community of enthusiasts was encoding MPEG-4 video into AVI containers and running into the same ceilings repeatedly: no reliable subtitle muxing, no clean chapter support, no way to bundle commentary tracks without a separate file.
Matroska — the name comes from the Russian matryoshka nesting doll, a deliberate metaphor for a container holding many things inside — was a direct response. Development began in 2002, led by Steve Lhomme alongside a small team of volunteers. The project published its specification as open and free, with no licensing fee attached, which immediately distinguished it from alternatives circling the professional market. The Extensible Binary Meta Language (EBML) underpins the format: a binary structure that allows the container to describe new element types without breaking older parsers, which is what "extensible" means in practice. A player that does not recognise an element can skip over it. That design decision alone solved one of AVI's chronic problems, where unofficial extensions caused crashes or silent corruption rather than graceful degradation.
What it could hold
The Matroska specification, from the first public release, supported an arbitrary number of video, audio, and subtitle tracks. Subtitles were not a hack but a defined track type, able to carry image-based formats like VobSub or text-based formats like SSA and ASS — the latter two being the subtitle formats that anime fansubbing communities had already developed sophisticated tooling around. Chapters were a native element, not a player convention. Attachments — fonts required to render a particular subtitle style, cover art, additional files — were part of the spec. Tags for metadata: also part of the spec.
The file extension most people encounter is .mkv, the Matroska Video container. A separate .mka handles audio-only files, and .mks was defined for subtitles, though the latter is rarely encountered in the wild. The most common use by the mid-2000s was pairing H.264 video with AAC or AC-3 audio, wrapping the whole thing with a chapter list and one or more subtitle streams — a combination that exposed precisely what AVI had never been able to manage cleanly.

Variable bitrate audio posed no structural problem for Matroska because the container's timing model does not assume fixed-size audio chunks the way AVI's interleaving scheme does. This was a practical rather than theoretical improvement: AVI containers carrying variable-bitrate MP3 audio were notorious for synchronisation drift, a problem that had generated its own ecosystem of repair tools. MKV eliminated the underlying cause.
Open format, lasting relevance
The WebM container, announced by Google in 2010 as the packaging for VP8 video and Vorbis audio, is a constrained profile of Matroska — the same EBML-based structure, trimmed to a specific codec combination for web delivery. That Google chose to build on Matroska rather than design something new is a reasonable measure of how well the underlying architecture had held up. WebM's specification is published by the WebM Project and explicitly documents its relationship to Matroska.
Matroska itself is now maintained by the Matroska.org community and has been submitted to the Internet Engineering Task Force as an open standard, a process that formalises what the format has been in practice for two decades. No royalty is owed to use it; no licence must be negotiated. In that respect it belongs to the same tradition as the Xiph.Org Foundation's work on audio formats: the position that a container, like a codec, should not require permission to implement.
Chronology
Timeline
- 1992Microsoft releases AVI as part of Video for Windows
- 2002Matroska development begins; initial specification published
- 2010Google announces WebM as a constrained Matroska profile
- OngoingMatroska submitted to IETF for formal standardisation
AVI still plays. Its files are still everywhere in archives, on old drives, in capture card software that hasn't been updated since 2007. But every feature that made those files awkward to work with — the missing chapter support, the subtitle hacks, the audio sync drift — is a specific problem that Matroska was designed to have never had.

How it works
What the format solved
- Multiple audio tracksnative spec element, not an extension hack
- Subtitle tracksdefined track type supporting both text (SSA/ASS) and image-based (VobSub) formats
- Chapter markersbuilt into the container, not a player convention
- Attachmentsfonts, cover art and auxiliary files carried inside the file
- VBR audio synctiming model does not assume fixed-chunk interleaving