Convert TS to MKV
Max file size 100mb.
TS vs MKV Format Comparison
| Aspect | TS (Source Format) | MKV (Target Format) |
|---|---|---|
| Format Overview |
TS
MPEG Transport Stream
A streaming-oriented container format designed for broadcast television, cable systems, and live transmission where data loss is expected. Transport Stream uses fixed-length 188-byte packets with error correction, making it resilient to transmission errors. TS is the foundation of HLS streaming, the standard for DVB/ATSC broadcast, and the container used for Blu-ray disc storage (M2TS variant). Standard Lossy |
MKV
Matroska Video Container
An open-source, royalty-free container format designed to hold virtually any combination of video, audio, subtitle, and metadata tracks within a single file. MKV supports unlimited streams, ordered chapters, segment linking, and advanced features like variable frame rate and 3D video. Created in 2002 by the Matroska project, it has become the preferred format for high-quality video archiving and media libraries. Modern Lossless |
| Technical Specifications |
Container: MPEG-2 Transport Stream (ISO/IEC 13818-1)
Video Codecs: MPEG-2, H.264/AVC, H.265/HEVC Audio Codecs: MPEG-1 Layer II (MP2), AAC, AC-3, DTS Max Resolution: Up to 8K (H.265 in ATSC 3.0) Extensions: .ts, .mts, .m2ts, .tsv |
Container: Matroska (EBML-based binary format)
Video Codecs: Any (H.264, H.265, VP9, AV1, FFV1, etc.) Audio Codecs: Any (AAC, FLAC, DTS, TrueHD, Opus, etc.) Max Resolution: Unlimited (depends on codec) Extensions: .mkv, .mka (audio), .mks (subtitles) |
| Video Features |
|
|
| Processing & Tools |
TS encoding and broadcast operations with FFmpeg: # Encode to MPEG Transport Stream ffmpeg -i input.mp4 -c:v libx264 -c:a aac \ -f mpegts output.ts # Create HLS segments from TS ffmpeg -i input.ts -c copy -hls_time 10 \ -hls_list_size 0 output.m3u8 |
MKV remuxing and stream management with FFmpeg: # Remux TS to MKV (no re-encoding) ffmpeg -i input.ts -c copy output.mkv # Remux preserving all streams ffmpeg -i input.ts -map 0 -c copy output.mkv # Add subtitle track to MKV mkvmerge -o output.mkv input.mkv \ --language 0:eng subs_en.srt |
| Advantages |
|
|
| Disadvantages |
|
|
| Common Uses |
|
|
| Best For |
|
|
| Version History |
Introduced: 1995 (ISO/IEC 13818-1, MPEG-2 Systems)
Current Version: MPEG-2 Systems Amendment 4 (2018) Status: Active standard for broadcast, Blu-ray, and HLS Evolution: MPEG-2 TS (1995) → DVB/ATSC (1998) → Blu-ray/M2TS (2006) → HLS segments (2009) → ATSC 3.0 (2019) |
Introduced: 2002 (Matroska project)
Current Version: Matroska v4 (WebM profile), EBML v1 Status: Active open-source development Evolution: MCF (2002) → Matroska v1 (2002) → v2 (2003) → v4/WebM (2010) |
| Software Support |
Media Players: VLC, mpv, PotPlayer, Kodi
Web Browsers: Via HLS.js (as HLS segments) Video Editors: Adobe Premiere Pro, DaVinci Resolve, Kdenlive Mobile: Android/iOS (via HLS streaming players) CLI Tools: FFmpeg, tstools, DVBInspector, MediaInfo |
Media Players: VLC, mpv, PotPlayer, MPC-HC, Kodi
Web Browsers: Not natively supported (WebM subset only) Video Editors: DaVinci Resolve, Kdenlive, Shotcut Mobile: Android (MX Player, VLC), iOS (VLC, Infuse) CLI Tools: FFmpeg, MKVToolNix, HandBrake, MediaInfo |
Why Convert TS to MKV?
Converting TS to MKV is the gold standard for transforming broadcast recordings into archival-quality local files. MPEG Transport Stream's 188-byte packet structure with synchronization overhead, program association tables, and error correction data is essential for broadcast resilience but completely wasteful for local storage and playback. MKV removes all this overhead while preserving every video, audio, and subtitle stream from the original broadcast in a clean, seekable container optimized for media libraries.
The most compelling reason for TS-to-MKV conversion is the lossless remux capability. When both formats share compatible codecs (H.264/H.265 video, AAC/AC-3/DTS audio), you can copy the streams directly from TS to MKV without any re-encoding — zero quality loss, near-instant conversion, and a smaller output file due to the removal of TS packet overhead. A 4 GB TS recording becomes a 3.8-3.9 GB MKV with bit-identical video and audio quality.
MKV also offers vastly superior metadata and multi-track management compared to TS. Broadcast recordings often contain multiple audio tracks (languages, descriptive audio) and subtitle streams (DVB subtitles, teletext) that TS handles through program IDs (PIDs). MKV preserves all these tracks with proper language tags, default track settings, and forced subtitle flags — making the content immediately usable in media servers like Plex, Jellyfin, and Kodi, which automatically select the right audio and subtitle tracks based on user preferences.
For DVR users and broadcast archivists, TS-to-MKV conversion is the essential first step in building a well-organized media library. The MKV container adds chapter markers for scene navigation, supports embedding cover art and metadata, and provides reliable seeking that TS files sometimes lack. The conversion also removes any broadcast artifacts like null packets, padding, and program-specific information (PSI) tables that serve no purpose outside the broadcast environment.
Key Benefits of Converting TS to MKV:
- Lossless Remux: Copy streams without re-encoding — zero quality loss, instant speed
- All Tracks Preserved: Keep every audio, subtitle, and video stream from the broadcast
- Smaller Files: Remove TS packet overhead for reduced file sizes
- Chapter Support: Add chapter markers for scene navigation in long recordings
- Media Server Ready: Native support in Plex, Jellyfin, Kodi, and Emby
- Clean Seeking: Reliable fast-forward and rewind without broadcast seek issues
- Open Format: Royalty-free, patent-free with active development
Practical Examples
Example 1: DVR Recording to Plex Library
Scenario: A cord-cutter records broadcast television using an HDHomeRun tuner and Plex DVR. The recordings are stored as TS files and need to be cleaned up into MKV for the Plex media library with proper track labels.
Source: breaking_bad_s01e01.ts (5.2 GB, 1920x1080, H.264, AC-3 5.1 + SAP) Conversion: TS → MKV (lossless remux + track organization) Result: breaking_bad_s01e01.mkv (4.9 GB, same quality, organized tracks) Workflow: 1. Remux TS to MKV (lossless, no re-encoding) 2. Label audio track 1: "English 5.1" (default) 3. Label audio track 2: "Spanish SAP" (secondary) 4. Extract closed captions as SRT subtitle track 5. Add chapter markers at commercial break points ✓ Plex auto-selects English audio and English subtitles ✓ 300 MB smaller without TS broadcast overhead ✓ Reliable seeking — no more TS position glitches ✓ Chapter markers allow skipping commercial segments
Example 2: Blu-ray M2TS to Archive MKV
Scenario: A film collector is ripping Blu-ray discs and wants to convert the M2TS transport stream files to MKV while preserving all original audio tracks, PGS subtitles, and chapter information.
Source: 00001.m2ts (32 GB, 1920x1080, H.264, DTS-HD MA + AC-3 + commentary) Conversion: M2TS → MKV (lossless remux, all tracks preserved) Result: the_dark_knight.mkv (31.5 GB, identical quality, 3 audio + 5 subs) Blu-ray archive workflow: 1. Remux M2TS to MKV container (lossless) 2. Map all 3 audio tracks with language tags 3. Map all 5 PGS subtitle tracks with language tags 4. Import chapter list from Blu-ray metadata 5. Embed cover art as MKV attachment ✓ DTS-HD Master Audio preserved bit-perfectly ✓ All subtitle languages accessible in player ✓ Chapter thumbnails visible in Kodi/Jellyfin timeline ✓ Single file replaces complex Blu-ray folder structure
Example 3: IPTV Multi-Language Archive
Scenario: An international broadcaster archives multi-language IPTV streams for compliance. Each TS stream carries 4 audio languages and DVB subtitles that must be preserved in a storage-friendly format.
Source: news_multilang_20260317.ts (8.6 GB, 1080i, H.264, 4× AAC audio, DVB subs) Conversion: TS → MKV (deinterlace + preserve all tracks) Result: news_multilang_20260317.mkv (6.2 GB, 1080p, all tracks preserved) Multi-language archive: 1. Remux video with deinterlacing (1080i → 1080p) 2. Copy all 4 audio tracks (EN, FR, DE, ES) 3. Extract DVB subtitles to SRT format 4. Label all tracks with ISO 639-2 language codes 5. Set English audio and subtitles as default ✓ All 4 language audio tracks preserved and labeled ✓ DVB subtitles converted to universally compatible SRT ✓ Deinterlaced progressive video for modern displays ✓ Compliance-ready with all original content intact
Frequently Asked Questions (FAQ)
Q: Is TS-to-MKV conversion truly lossless?
A: Yes, when using remux mode (ffmpeg -i input.ts -c copy output.mkv), the video and audio streams are copied bit-for-bit into the MKV container without any re-encoding. The output MKV contains the exact same encoded data as the source TS. The only change is the container wrapper, and MKV's lower overhead actually makes the output file slightly smaller.
Q: Why is my MKV file smaller than the original TS?
A: TS files contain significant overhead: each 188-byte packet includes 4 bytes of header plus optional adaptation fields, null packets for constant bitrate padding, program association and map tables, and error correction data. MKV strips all of this, keeping only the actual video and audio data. A typical remux reduces file size by 2-5% without any quality loss.
Q: Can I preserve DVB subtitles from the TS file?
A: DVB bitmap subtitles can be preserved in MKV, but text-based subtitles are more practical. Use FFmpeg or CCExtractor to extract DVB subtitles and convert them to SRT or ASS format before embedding in MKV. For PGS subtitles from Blu-ray M2TS files, MKV supports them natively — they can be remuxed directly.
Q: How do I select specific streams from a multi-program TS?
A: Use FFmpeg's -map option to select specific streams by index. First inspect the TS with ffprobe input.ts to identify stream indices, then use ffmpeg -i input.ts -map 0:v:0 -map 0:a:0 -map 0:a:1 -c copy output.mkv to select the first video and first two audio streams. MKVToolNix GUI also provides a visual interface for stream selection.
Q: Will the MKV play on my smart TV?
A: Most modern smart TVs (Samsung, LG, Sony, TCL) support MKV playback with H.264/H.265 video and AAC/AC-3 audio. If the original TS used H.264 video, the remuxed MKV will play on the same TVs. For best results, use a media server like Plex or Jellyfin that can transcode incompatible tracks on-the-fly.
Q: How do I add chapter markers after converting from TS?
A: Use MKVToolNix (mkvpropedit) to add chapters to an existing MKV: mkvpropedit output.mkv --chapters chapters.xml. Create the chapters.xml file with timestamps for each chapter point. For Blu-ray M2TS sources, the chapter information can often be extracted from the BDMV/PLAYLIST files using tools like eac3to or MakeMKV.
Q: Should I re-encode MPEG-2 TS files or just remux?
A: If the TS uses MPEG-2 video, remuxing to MKV preserves the original quality but keeps the large MPEG-2 file size. Re-encoding to H.264 or H.265 can reduce file size by 50-70% at equivalent quality, but takes significant processing time. For archival, remux first (instant, lossless), then optionally re-encode later when you have time. For space-constrained storage, re-encode to H.265.
Q: Can MKVToolNix handle TS files directly?
A: Yes. MKVToolNix's mkvmerge can read TS and M2TS files directly and output MKV. This is often more reliable than FFmpeg for complex multi-track TS files: mkvmerge -o output.mkv input.ts. The MKVToolNix GUI provides a drag-and-drop interface where you can select individual tracks, set language tags, and configure chapter markers before conversion.