Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Video

MPEG-TS Inspector

Drop in an MPEG transport stream file (.ts or .m2ts) and inspect its packetized structure. The tool validates the 0x47 sync byte on every 188-byte packet, decodes each packet header (the PID, the payload unit start indicator, the adaptation field control, and the continuity counter), and builds a PID histogram that shows how many packets each stream carries. It detects the Program Association Table (PID 0) and the Program Map Table it points to, reporting the PMT PID and the elementary stream PIDs it declares. The tool flags the classic problems: a missing or corrupt sync byte, a PID with a packet counter gap that indicates packet loss, an unexpected PID list, a PAT that never appears, and a file that does not end on a packet boundary. Everything runs on-device.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Drop a file here, or browse

Accepts: .ts,.m2ts,.mts,video/mp2t,application/octet-stream

Files stay on your device.

Ctrl+V to paste an image

    Options

    Drop a file above to begin

    Your file are processed on this device and never uploaded.

    How it works

    Why transport streams are packetised

    MPEG-TS was designed for broadcast, where a receiver can join a stream at any point and must recover from loss. The file is a flat sequence of fixed 188-byte packets, each starting with the 0x47 sync byte. Inside each packet header are a 13-bit PID identifying the stream, a payload-start flag, an adaptation-field control and a 4-bit continuity counter. The inspector validates the sync byte and decodes that header for every packet.

    PIDs, PAT and PMT

    Every elementary stream — video, audio, subtitles — has its own PID. The Program Association Table on PID 0 lists the programs, and each program points to a Program Map Table that declares its elementary streams. The inspector walks those tables and reports the PMT PID and the stream PIDs it declares, then builds a PID histogram so you can see how the bytes are distributed across tracks.

    Continuity counters and loss

    The continuity counter increments for each packet on a PID that carries a payload. A gap means packets were lost or the file was spliced, and the inspector counts those gaps per PID rather than only reporting a global error. It also flags a corrupt or missing sync byte, a scrambled payload, an unexpected PID list, a PAT that never appears, and a file whose length is not a multiple of 188 bytes.

    Practical limits

    Files up to 512 MB are inspected, and the packet walk stops after 500000 packets so a multi-gigabyte capture still returns a useful summary quickly. The views cover a compact summary, the per-PID table and a packet-level listing. Nothing is demuxed or remuxed, so the file is read-only and remains untouched on disk.

    Questions

    Does the inspector extract the video or audio?

    No. It reads packet headers and the PAT and PMT tables to describe the stream. Extracting elementary streams is a demuxing job, which is a different tool.

    What does a continuity-counter gap mean?

    It means packets on that PID were lost or reordered. Broadcast captures often show a few gaps after a signal drop, and a file with many gaps is likely to play with visible glitches.

    Why does it warn that the file does not end on a packet boundary?

    A transport stream packet is exactly 188 bytes. A trailing partial packet usually means the capture was cut off mid-write, which is the most common kind of damage in a recorded .ts file.

    Can it read .m2ts files?

    Yes. The extension is accepted, and the inspector starts from the first 0x47 sync byte, so a transport stream with a different leading offset is still found and parsed.

    See category