video/x-matroska

All MIME types
Video · Unregistered tree.mkv .mk3d

Media type / video

video/x-matroska

Matroska (.mkv): a container that can hold effectively any codec, plus multiple subtitle and audio tracks.

Served inline: Browsers have no renderer for this, so it downloads even without a Content-Disposition header. That makes it the quiet default for anything you do not want opened in place.

Browser behaviour

Downloads

Charset

no charset

Compression

Already compressed

Send it like this

Content-Type: video/x-matroska

A binary payload has no character encoding. A charset parameter here is meaningless and occasionally confuses strict parsers.

Handling verdict

InlineDownloads

Browsers have no renderer for this, so it downloads even without a Content-Disposition header. That makes it the quiet default for anything you do not want opened in place.

Charsetno charset

A binary payload has no character encoding. A charset parameter here is meaningless and occasionally confuses strict parsers.

CompressionAlready compressed

The format compresses internally. Another transport encoding costs CPU on both ends and typically changes the size by less than a percent — sometimes upward.

NameUnregistered tree

An `x-` prefix marks a type that was never registered. RFC 6838 discourages new ones, but several — like application/x-www-form-urlencoded — are now too widespread to change.

Anatomy of the name

RFC 6838

Top-level type

video

Video

Subtype

x-matroska

Registered in the unregistered tree.

Structured syntax

none

No suffix, so the payload format is defined entirely by the subtype itself.

Parameters

none

Beyond the charset rule above, this type defines no parameters of its own.

What trips people up

1 note
  • Browsers will not play .mkv even when the codecs inside are ones they support — remux to WebM or MP4.

Response headers

Content-Type: video/x-matroska
X-Content-Type-Options: nosniff
Content-Disposition: attachment; filename="example.mkv"

nosniff stops the browser second-guessing the type you declared, which is what makes the rest of this reliable. Content-Disposition: attachment names the saved file and removes any doubt about rendering.

Server configuration

extension mapping

nginx

types {
    video/x-matroska  mkv mk3d;
}

Apache

AddType video/x-matroska .mkv .mk3d

Caddy

@type path *.mkv *.mk3d
header @type Content-Type "video/x-matroska"

Extensions and other spellings

with signature

File extensions

.mkv.mk3d

File signature

1A 45 DF A3

Check these bytes rather than the client-supplied Content-Type when validating an upload. The header is a claim; the signature is evidence.

Related media types

8
Familyvideo
Treeunregistered
Suffix
Inlinedownload