video/mp2t

All MIME types
Video · Standards tree · RFC 3555.ts .m2t

Media type / video

video/mp2t

MPEG-2 transport streams: the .ts segments that HLS splits a stream into, and the format of broadcast video.

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/mp2t

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.

NameStandards tree

Registered with IANA through a public review process, so the name is stable and every implementation can rely on it meaning the same thing.

Anatomy of the name

RFC 6838

Top-level type

video

Video

Subtype

mp2t

Registered in the standards 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
  • A build tool that maps .ts to this type instead of TypeScript is a recurring and very confusing bug.

Response headers

Content-Type: video/mp2t
X-Content-Type-Options: nosniff
Content-Disposition: attachment; filename="example.ts"

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/mp2t  ts m2t;
}

Apache

AddType video/mp2t .ts .m2t

Caddy

@type path *.ts *.m2t
header @type Content-Type "video/mp2t"

Extensions and other spellings

declared

File extensions

.ts.m2t

File signature

No fixed signature — this format has no reliable magic number, so identify it by parsing rather than by the first few bytes.

Related media types

8
Familyvideo
Treestandards
Suffix
Inlinedownload