Matroska Video MIME Type
video/x-matroska identifies, why video/matroska replaced it, how to open MKV files, and how Poly supports them. MIME type details for video/x-matroska
In active use| MIME type | video/x-matroska |
|---|---|
| Extensions | .mkv |
| Alternate versions | video/matroska |
| First standardized | 2002 |
| Created by | Matroska project |
| Browser support | Firefox |
| Example applications | VLC media player, MKVToolNix |
| Poly support | Yes. Poly recognizes `.mkv` files and supports decodable video and audio for preview, search, metadata, and agent use. |
| Indexed by Poly | Yes. Poly indexes the filename, available technical metadata, spoken transcript, and sampled visual content. Transcripts require usable audio. |
| Preview in Poly | Yes. Poly provides a thumbnail, timeline previews, and in-app playback when the file's streams can be decoded. |
| Poly agent | Yes. The Poly agent can use supported visual content, transcript, and metadata. Results depend on decodable streams and audible speech. |
What does video/x-matroska mean?
The video/x-matroska MIME type identifies Matroska video files, normally with the .mkv extension. Matroska is a container, not a video codec. One MKV can hold video, multiple audio tracks, subtitles, chapters, tags, and attachments.12
That flexibility is useful for movies, multilingual releases, recorded presentations, and preservation masters. It also means the extension alone cannot tell you whether a particular device can play the file. A player must support the Matroska container and every codec needed by its tracks.
video/x-matroska is now a deprecated alias. RFC 9559 registered video/matroska as the standard name in 2024, with .mkv as its extension and no required or optional parameters.13 Existing software and collections still use the older x- spelling, so compatible applications often recognize both.How to identify an MKV file
Matroska is built on EBML, the Extensible Binary Meta Language. A file starts with an EBML header whose element ID is 1A 45 DF A3, but that byte sequence is not unique to Matroska. Reliable identification also checks that the header's document type is matroska and validates the following structure.24
The IANA registration therefore lists no standalone magic number for video/matroska.1 Renaming another video to .mkv changes only its filename. It does not create a Matroska container.
Common Matroska extensions describe different kinds of content:
| Extension | Typical content | Registered MIME type |
|---|---|---|
.mkv | Video, often with audio and subtitles | video/matroska |
.mka | Audio-only Matroska | audio/matroska |
.mk3d | Stereoscopic video | video/matroska-3d |
.mks | Subtitle-only Matroska | No current IANA registration |
Use video/x-matroska or its replacement video/matroska for .mkv, not for every file based on Matroska.13
History and standardization
The Matroska project began on December 6, 2002 as a fork of the Multimedia Container Format project. It chose EBML so the container could evolve without making older readers reject every unfamiliar element.25
Matroska version 4 is the current format version. Versions 1 through 3 are no longer maintained, but versioning rules are designed so newer files can remain usable by older readers when they avoid unsupported features.2
In October 2024, the IETF published RFC 9559 on the Standards Track. The RFC defines the container structure and established video/matroska as the registered media type, making video/x-matroska its deprecated alias.12
How to open a video/x-matroska file
For local playback, VLC lists Matroska among its supported input formats.6 MKVToolNix is useful when you need to inspect tracks, create an MKV, change container metadata, or extract a stream without treating the whole file as one video track.7
Native browser support is more dependent on both browser and codec. Firefox 145 added MKV support for commonly used combinations including AVC, HEVC, VP8, VP9, AV1, AAC, Opus, and Vorbis.8 Other browser and device combinations may accept only some Matroska files.
Matroska support in Poly
Poly recognizes .mkv files as video/x-matroska. For supported streams, you can:
- Browse with a representative thumbnail and timeline previews.
- Play the video in Poly and jump to a relevant moment.
- Find it by filename, spoken transcript, and sampled visual content.
- Review available details such as duration, dimensions, frame rate, codecs, color information, and audio tracks.
- Ask the Poly agent about supported visual content, speech, and metadata.
Speech search and transcript-based answers require a usable audio track with audible speech. Silent video can still benefit from visual search. Playback and content-aware features depend on the codecs carried by the MKV.
See Supported File Types for the compact video feature comparison.
MKV compared with WebM
WebM is based on Matroska, but it deliberately narrows the permitted codecs and features for web delivery.3 An .mkv file and a .webm file can share the same underlying EBML structure without being interchangeable.
| Property | Matroska MKV | WebM |
|---|---|---|
| Main goal | Flexible multimedia container | Web-focused media delivery |
| Typical extension | .mkv | .webm |
| MIME type | video/matroska | video/webm |
| Codec choice | Broad and extensible | Restricted by the WebM specification |
| Chapters, attachments, and track options | Broad support | More constrained profile |
Changing .mkv to .webm is safe only when the file already meets WebM's requirements and is remuxed correctly. Otherwise, compatible tracks must be selected or transcoded.
Converting MKV to MP4 or WebM
Choose a destination based on where the result must play:
| Goal | Practical choice | What to verify |
|---|---|---|
| Broad device playback | MP4 with widely supported video and audio codecs | Video, audio, subtitles, duration, and synchronization |
| Web delivery | WebM with a permitted codec combination | Target-browser support and subtitle behavior |
| Preserve quality | Remux compatible streams without re-encoding | Destination-container codec support |
| Keep every track and attachment | Retain the original MKV | Player support for all included features |
Remuxing changes the container without changing compatible encoded streams, so it is fast and does not introduce generation loss. Transcoding decodes and re-encodes a track, which can improve compatibility but may reduce quality. Keep the original until you have checked every required audio, subtitle, chapter, and attachment.
Footnotes
- Internet Assigned Numbers Authority. video/matroska Media Type Registration. The registration names
.mkv, listsvideo/x-matroskaas a deprecated alias, and defines no media-type parameters or magic number. ↩ ↩2 ↩3 ↩4 ↩5 - RFC Editor. RFC 9559: Matroska Media Container Format Specification. IETF Standards Track specification for the container, versioning, tracks, chapters, attachments, tags, and security considerations. ↩ ↩2 ↩3 ↩4 ↩5 ↩6
- Matroska Project. Matroska Media Container Homepage. Format variants and the relationship between Matroska and WebM. ↩ ↩2 ↩3
- RFC Editor. RFC 8794: Extensible Binary Meta Language. EBML header structure and document-type identification. ↩
- Library of Congress. Matroska Multimedia Container. Format history, identifiers, adoption, and preservation context. ↩
- VideoLAN. VLC Features. Supported input containers include Matroska. ↩
- MKVToolNix. Matroska Tools for Linux, Unix, and Windows. First-party description of tools for creating, altering, and inspecting Matroska files. ↩
- MDN Web Docs. Firefox 145 Release Notes for Developers. Matroska support and the listed codec combinations. ↩