What is the TS file format?
.ts (short for Transport Stream) is a video container format used for transporting and storing compressed MPEG audio and video data. Originally developed for digital broadcast television (DVB, ATSC, ISDB), it is also widely used by DVR devices and set-top box recorders.
.ts files use the MPEG-2 Systems container standard and store data in a multiplexed format. The stream consists of fixed-size 188-byte packets, each starting with the sync byte 0x47. Multiple elementary streams - video, audio, and metadata - are carried simultaneously and identified by Packet Identifiers (PIDs), allowing the format to support simultaneous image and sound transmission.
Recorders typically create multiple .ts files for a single session, e.g. name1.ts, name2.ts, name3.ts, etc. These can be converted into other formats such as .MP4, .MPG, .MKV, and .M2TS.
Security & safety
RISK: LOWA TS video is media data - it doesn't execute on its own when you play it in a media player, so risk is low. Two practical cautions: (1) malformed or maliciously crafted streams have occasionally triggered bugs in media decoders, so keep your player (VLC/MPV) updated; (2) only the right kind of player should be used - opening a TS in a text editor just shows binary garbage. Files downloaded from untrusted sources should be scanned like any download.
Format details
in a nutshell- TypeScript source code - Microsoft's typed superset of JavaScript uses .ts for plain-text source files (.tsx with JSX); open these in a code editor like VS Code, not a video player.
- Qt translation source (Linguist) - Qt's Linguist tool stores translatable strings in .ts XML files - niche, developer-only.
Programs that open TS files
Technical details
deep spec| Container structure | Fixed-size 188-byte packets mandated by ISO/IEC 13818-1; no variable-length packets |
| Sync byte | 0x47 at offset 0 of every packet; repeats exactly every 188 bytes and is the primary file identifier |
| MIME type | video/mp2t |
| Packet Identifier (PID) | 13-bit field (0x0000-0x1FFF) in each packet header routing the payload to the correct elementary stream |
| Program Association Table (PAT) | Mandatory table carried at PID 0x0000; lists all programs in the stream and their corresponding PMT PIDs |
| Program Map Table (PMT) | Per-program table mapping component PIDs for video, audio, subtitles, and other elementary data streams |
| Program Clock Reference (PCR) | 42-bit timestamp embedded in adaptation fields; used by decoders to recover the encoder clock and synchronize audio/video |
| Multi-program support | A single .ts file can carry one program (SPTS) or multiple programs simultaneously (MPTS) |
| Codec support | Container-agnostic: carries MPEG-2 Video, H.264/AVC, H.265/HEVC, MPEG-1 Audio, AC-3, AAC, and other codecs as PES payloads |
| Conditional access | Supports stream encryption via Conditional Access System (CAS) using ECM and EMM packets |
| Error resilience | Packet-based structure lets receivers resynchronize from the next 0x47 sync byte after a transmission error without restarting |
| Adaptation field | Optional 0-183 byte field per packet carrying PCR timestamps, discontinuity flags, and stuffing bytes for padding |
| Primary use cases | Digital broadcast TV (DVB-T/S/C, ATSC, ISDB), IPTV delivery, live stream recording, and DVR output |
| Common conversion targets | .mp4 (H.264/AAC remux), .mkv (lossless container switch), .mpg (MPEG-2 compatibility), .m2ts (Blu-ray variant) |
| Released | 1995 (ISO/IEC 13818-1, MPEG-2 Systems) |
| Open standard | Yes · royalty-free |
| Specification | en.wikipedia.org |
TS conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about TS files.