Initializing... drag & drop files here
Supports: MPG, MPEG
.mpg and .mpeg extensions are accepted.MPG (MPEG Program Stream) and TS (MPEG Transport Stream) are both defined in ISO/IEC 13818-1, the MPEG-2 Systems standard first published on 10 July 1995. They carry the same elementary streams but package them differently: PS assumes a reliable storage medium like a DVD, while TS wraps each elementary stream in fixed 188-byte packets with a 4-byte header and a 13-bit PID, plus a Program Clock Reference (PCR) transmitted at least every 100 ms. That packet structure is what makes TS the standard container for broadcast, IPTV, and HLS streaming.
.ts files referenced from an .m3u8 playlist. A .mpg won't load in HLS players; the .ts will..ts. Converting an archive of .mpg recordings is the first step in republishing them through an IPTV head-end.cat or ffmpeg's concat demuxer because each segment is self-synchronizing on the 0x47 sync byte. Joining two MPG program streams often produces audio drift or broken timestamps.| Property | MPG (Program Stream) | TS (Transport Stream) |
|---|---|---|
| Standard | ISO/IEC 13818-1 Part 1 | ISO/IEC 13818-1 Part 1 |
| Packet size | Variable, large packs | Fixed 188 bytes (4-byte header + 184-byte payload) |
| Sync mechanism | Pack header (0x000001BA) | Sync byte 0x47 every 188 bytes |
| Stream identifier | Stream ID | 13-bit PID |
| Clock reference | SCR (System Clock Reference) | PCR every 100 ms or less |
| Error resilience | None — assumes reliable storage | Designed for lossy transmission |
| Typical video codec | MPEG-1 or MPEG-2 | H.264 (default), HEVC, MPEG-2, AV1 |
| Typical audio codec | MP2 | AAC (default), AC-3, MP2 |
| Native uses | DVD-Video, Video CD, local files | DVB, ATSC, ISDB, IPTV, HLS, Blu-ray (as M2TS) |
| File extensions | .mpg, .mpeg |
.ts, .tsv, .m2t, .m2ts (M2TS variant) |
| Codec | Typical bitrate (1080p) | Best for | Notes |
|---|---|---|---|
| H.264 / AVC | 4-8 Mbps | HLS, IPTV, general compatibility | Default; plays on virtually every modern device |
| H.265 / HEVC | 2-4 Mbps | 4K HLS, storage-constrained archives | About 50% smaller than H.264 at equivalent quality; HLS supports HEVC since iOS 11 (2017) |
| MPEG-2 | 8-20 Mbps | DVB / ATSC broadcast equipment, legacy IPTV | Mandatory for some broadcast hardware |
| AV1 | 1.5-3 Mbps | Newer streaming pipelines that have decoded AV1 | Smallest files, slowest to encode; verify player support before deploying |
HLS players load an .m3u8 playlist that points to one or more .ts segments (or fragmented MP4 segments in newer pipelines). An .mpg is a program stream and lacks the 188-byte packet structure, the PID multiplexing, and the PCR cadence that HLS demuxers expect. Converting to .ts produces a file the player can read, then it can either be served as-is or sliced into 6-second segments per Apple's HLS authoring recommendation.
Both are MPEG transport streams carrying the same elementary streams. M2TS, used by Blu-ray Disc and AVCHD camcorders, prepends a 4-byte timecode to every 188-byte TS packet, producing 192-byte packets. Plain .ts is what HLS, DVB, and most IPTV chains consume; .m2ts is what Blu-ray authoring tools expect. If you need M2TS specifically, convert to TS here and re-wrap with a Blu-ray authoring tool, or use MPG to M2TS directly.
H.264 is the safer default — it plays everywhere, including older smart TVs, set-top boxes, and any HLS player from the last decade. H.265/HEVC produces roughly 50% smaller files at the same visual quality, which matters for 4K HLS or storage-bound archives, but playback requires iOS 11+ (2017), tvOS 11+, Edge/Safari on supported hardware, and Chrome only since version 105 (Aug 2022). For broadcast equipment using MPEG-2 input, change the codec from the default.
The tool rewrites Presentation Timestamps (PTS) and inserts a new PCR cadence appropriate for transport stream playback. Frame-accurate timing is preserved relative to the start of the file, but the absolute SCR values from the source PS are not carried into the output. For most playback and streaming use cases this is exactly what you want; if you need to preserve broadcast timestamps from a captured DVB recording, work directly with the original .ts capture rather than round-tripping through MPG.
Yes — that's one of the reasons people convert to TS. Because every 188-byte packet starts with the 0x47 sync byte and TS has no global header, you can join multiple .ts files at the byte level (cat a.ts b.ts > out.ts) or use ffmpeg's concat demuxer. The same trick fails on .mpg because pack headers and SCR values don't line up across files. Just ensure the codecs and resolution match across the files you're joining.
TS adds packet headers (4 bytes per 188-byte packet, about 2.1% overhead) and adaptation fields carrying the PCR. If you keep the same MPEG-2 codec, expect the output to be 2-5% larger than the input. If you let the default H.264 re-encode happen, the output is usually substantially smaller because H.264 is roughly 2x more efficient than MPEG-2 at equivalent visual quality.
Yes. VLC has played MPEG-2 transport streams natively since version 0.5.0 (2003); MPC-HC, MPV, and PotPlayer all handle TS without plugins. On Windows, Movies & TV plays H.264-in-TS but not always MPEG-2-in-TS without the optional MPEG-2 codec pack. On macOS, IINA and VLC are the most reliable choices.
Open Advanced Options, scroll to Trim, switch from "Unchanged" to "Time Range", and enter Start Time and Duration. Times accept HH:MM:SS.sss or seconds. The trim happens during the conversion pass, so there's no quality loss beyond the single re-encode. For trim-only without re-encoding the codec, use Video Cutter on the MPG first, then convert.
Program streams can carry multiple audio elementary streams, and the converter preserves them in the TS output, each on its own PID. HLS players will pick up the alternate tracks if you reference them correctly in the .m3u8 playlist. If you need to drop or select a specific track, use Audio Cutter or run an FFmpeg -map pass before uploading.