iLoveConverter
Categories 11 categories
Video M2TS

The MPEG-2 Transport Stream (.m2ts / .mts) Format, Explained

iLoveConverter Team 3 min read

On this page

MPEG-2 Transport Stream — .ts, .m2ts, .mts — is the container format at the heart of digital television, Blu-ray discs and HD camcorders. Designed by MPEG in the 1990s for error-prone broadcast networks, it packages video, audio and metadata into small 188-byte packets that can survive signal drops and still be decoded.

Why multiple extensions (.ts vs .m2ts vs .mts)

They all contain the same MPEG-2 Transport Stream container. The difference is convention:

  • .ts — generic broadcast transport stream. Digital TV tuners, IPTV, satellite capture.
  • .m2ts — Blu-ray BDAV format. 192-byte packets (188 + 4-byte Arrivo extension), used for recorded Blu-ray content.
  • .mts — camcorder recording (AVCHD). Same structure as .m2ts but used for on-camera media.

Most players treat them all identically. FFMpeg reads and writes any variant.

TS structure at a glance

The 188-byte packets (or 192-byte Blu-ray variant) are the fundamental unit. Each packet has:

  • 4-byte header with sync byte 0x47, flags, and a 13-bit PID (Program ID).
  • 184 bytes of payload (TS) or 188 bytes (Blu-ray M2TS).

PIDs identify streams. PID 0 is the PAT (Program Association Table), which points to PMTs (Program Map Tables) for each channel. Each PMT lists the PIDs for its video, audio, subtitles and other data.

M2TS vs MP4 vs MKV

AspectM2TS / TSMP4MKV
Packet size188 / 192 bytesVariable atomsVariable blocks
Designed forBroadcast resilienceFile distributionGeneric media
Multiple programsNative supportNoNo
In-stream error recoveryYesNoNo
Video codecUsually MPEG-2, sometimes H.264/H.265AnyAny
Audio codecUsually MP2, sometimes AC3AnyAny

Where you find M2TS

  • Blu-ray video recordings — home-recorded Blu-rays or ripped before remuxing.
  • HD camcorders — AVCHD recordings from Canon, Sony, Panasonic.
  • Satellite/cable captures — raw TS from TV tuners.
  • IPTV streams — multicast RTP often carries TS inside.

Common operations

Remux to MP4 (no re-encoding):

ffmpeg -i input.m2ts -c copy -bsf:a aac_adtstoasc output.mp4

Remux to MKV (preserves all tracks):

ffmpeg -i input.m2ts -c copy output.mkv

Re-encode for smaller file / compatibility:

ffmpeg -i input.m2ts -c:v libx264 -crf 20 -c:a aac -b:a 192k output.mp4

Join multiple MTS/M2TS files (camcorder split recording):

# Method 1 — ffmpeg concat demuxer
echo "file 'segment1.mts'" > list.txt
echo "file 'segment2.mts'" >> list.txt
ffmpeg -f concat -i list.txt -c copy merged.mkv

# Method 2 — Windows copy binary concatenation (only for same-encoding segments)
copy /b segment1.mts + segment2.mts merged.mts

Common problems

  • M2TS does not play in certain players — remux to MP4 or MKV.
  • Audio only plays on Blu-ray players — AC3 audio may need re-encoding to AAC for MP4 containers.
  • Subtitles missing after remux — TS subtitles use a different format; use -c:s mov_text for MP4 or -c:s srt to extract.
  • Multiple audio tracks garbled — demux with ffmpeg first to see what is inside, then remux selectively.

FAQ

Is M2TS better than MP4?

Better for broadcast resilience and multi-program transport. Worse for file distribution — MP4 is smaller, more supported and simpler.

Can a browser play M2TS?

Not natively. Browsers play MP4 (HLS can carry fragmented MP4 but not raw TS directly). Transcode or remux first.

Why are M2TS files so big?

They contain raw broadcast streams. Re-encode to H.264/H.265 for a 5–10× size reduction with equivalent quality.

What is the .m2ts vs .mts difference?

Mostly convention. .m2ts is Blu-ray, .mts is camcorder AVCHD. Same container.

Try it yourself — free, right in your browser

Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.

Format deep-dives: M2TS (.m2ts.mts) , MPG (.mpg.mpeg) , MP4 (.mp4)