Reference · Containers

What can a media container actually do?

A container is more than a filename wrapper. Depending on the format it can describe multiple media tracks, language choices, subtitles, chapters, attachments, HDR signalling, alternate edits, timecode, metadata and streaming structure.

Capability overview comparing Matroska, MP4, MOV, WebM, AVI and MPEG transport stream.
Container capabilities differ because the formats were designed for different jobs.
Important: container capability is not the same as player capability. A specification may be able to represent a feature that a television, browser, editor or hardware decoder ignores.

Container capability overview

CapabilityMatroska / MKVMP4 / MOV familyWebMAVIOggMPEG-TSMXF
Multiple video tracksYesYesYesYes, streamsYes, multiplexed logical streamsYes, via PIDs/programsYes
Multiple audio tracks / languagesYes, rich track flagsYes, alternate groupsYesYes, but basic signallingPossible; structure metadata is separateYesYes
Subtitle / caption tracksYes, text and image mappingsYesYes, constrained by WebM profile/playerPossible but inconsistent/legacyPossible through codec mappingsYes, broadcast/DVD/Blu-ray systemsYes
ChaptersYes, including multiple/ordered editionsSupported by ecosystem conventions/metadataBasic Matroska chapter elements supportedNot a strong native featureNot core Ogg; external mappings can add structureProgram/service structures rather than file-style chaptersProduction metadata rather than consumer chapters
Attachments / cover art / fontsYes, general attachmentsArtwork/metadata supported; arbitrary attachments are not the same modelMatroska attachments intentionally unsupported by WebM guidelinesRIFF chunks can carry extra data, but no comparable universal attachment modelNot a core attachment systemNot a general file-attachment modelCan carry rich metadata and associated essence/data
Alternate edits / editionsYes, multiple editions and ordered chaptersAlternate tracks/groups; edit lists and movie structuresSubset onlyLimitedNot a core featurePrograms/services can provide alternate selectionsStrong editorial/version metadata in professional workflows
3D / stereo video signallingYes, explicit stereo modes and multi-plane track operationsPossible through sample entries/metadata/profile-specific signallingSome Matroska stereo elements are supportedMostly codec/private conventionsCodec/mapping dependentSystem/profile dependentProfessional metadata/profile dependent
HDR / mastering metadataYes, colour/mastering metadata; Dolby Vision mappings existYes, widely used for HDR10/HLG/Dolby Vision signallingYes for supported video mappingsWeak container-level HDR modelCodec/mapping dependentYes in modern broadcast/video systemsYes in professional interchange profiles
Streaming orientationFile/stream capableStrong fragmented/streaming variantsDesigned for web deliveryPrimarily file-orientedStrong one-pass stream orientationExcellent for continuous transport/broadcastProfessional file/interchange orientation
Rich technical/production metadataYesYesReduced subsetLimited/legacyBasic at core; Skeleton can add stream metadataService/program metadataExcellent; a core MXF strength

This table is intentionally about representational capability. Exact codec combinations and device support still depend on the relevant profile, mapping and implementation.

Why Matroska looks unusually broad

Matroska was designed as an extensible container rather than around one delivery ecosystem. It has first-class structures for multiple tracks, selectable roles/languages, chapters, multiple editions, arbitrary attachments, tags, stereo-3D modes, projections/VR metadata, colour/mastering metadata and track operations.

This makes MKV attractive for local libraries and preservation-style packaging, where one file might contain the main video, several audio mixes, commentary, descriptive audio, forced and full subtitles, chapter structures, cover art and subtitle fonts.

Capability does not guarantee playback support

A television can support “MKV” while supporting only a narrow subset of what Matroska can contain. The same applies to MP4, MOV, WebM and MXF. A useful compatibility check therefore asks at least three questions:

  1. Can the application parse the container?
  2. Can it decode the codec/profile/bit depth of each needed track?
  3. Does it understand the specific container feature, such as Dolby Vision signalling, PGS subtitles, ordered chapters or multiple editions?

Do not confuse capability with media quality

A container that supports more features does not inherently produce better picture or sound. Remuxing the same H.265 video and TrueHD audio between compatible containers can leave the encoded media unchanged while changing only packaging and metadata.