Convert MPG to MKV
Max file size 100mb.
MPG vs MKV Format Comparison
| Aspect | MPG (Source Format) | MKV (Target Format) |
|---|---|---|
| Format Overview |
MPG
MPEG-1/MPEG-2 Program Stream
The foundational digital video format standardized in the 1990s for Video CD (MPEG-1) and DVD-Video (MPEG-2). MPG files use MPEG Program Stream multiplexing to combine MPEG-1 or MPEG-2 video with MP2 or AC-3 audio for sequential, error-free playback. While superseded by H.264 and H.265 for modern use, MPEG-2 remains the backbone of broadcast television, DVD authoring, and legacy media archives. Legacy 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, Blu-ray rips, and media libraries where maximum flexibility matters more than universal device compatibility. Modern Lossless |
| Technical Specifications |
Container: MPEG Program Stream (ISO/IEC 11172-1, 13818-1)
Video Codecs: MPEG-1, MPEG-2 Audio Codecs: MPEG-1 Layer II (MP2), MP3, AC-3 Max Resolution: Up to 1920×1152 (MPEG-2 Main Profile @ High Level) Extensions: .mpg, .mpeg, .vob, .m2p |
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 |
MPG encoding for DVD and broadcast with FFmpeg: # Encode to MPEG-2 Program Stream ffmpeg -i input.avi -c:v mpeg2video -b:v 5M \ -maxrate 8M -bufsize 2M -c:a mp2 -b:a 256k output.mpg # DVD-compliant MPEG-2 encoding ffmpeg -i input.avi -target ntsc-dvd output.mpg |
MKV conversion and track management with FFmpeg and MKVToolNix: # Remux MPG to MKV (keeps MPEG-2 codec) ffmpeg -i input.mpg -c copy output.mkv # Re-encode MPG to MKV with H.264 ffmpeg -i input.mpg -c:v libx264 -crf 20 \ -c:a aac -b:a 192k output.mkv # Add subtitles after conversion mkvmerge -o final.mkv output.mkv \ --language 0:eng subs_en.srt |
| Advantages |
|
|
| Disadvantages |
|
|
| Common Uses |
|
|
| Best For |
|
|
| Version History |
Introduced: 1993 (MPEG-1, ISO/IEC 11172), 1995 (MPEG-2, ISO/IEC 13818)
Current Version: ISO/IEC 13818 (MPEG-2, multiple parts) Status: Legacy standard, maintained for broadcast and DVD Evolution: MPEG-1/VCD (1993) → MPEG-2/DVD (1995) → DVB/ATSC broadcast → still used in broadcast TV |
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, Windows Media Player, mpv, MPC-HC
Web Browsers: Not natively supported Video Editors: Adobe Premiere Pro, DaVinci Resolve, Avidemux Mobile: Android (VLC, MX Player), iOS (VLC) CLI Tools: FFmpeg, mpgtx, dvdauthor, MEncoder |
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 MPG to MKV?
Converting MPG to MKV upgrades your legacy MPEG-2 content from a rigid broadcast-era container to the most flexible multimedia format available. MKV can hold the original MPEG-2 video stream via lossless remux (zero quality loss, instant conversion), or you can re-encode to H.264/H.265 for dramatically smaller files. Either way, MKV gives you unlimited audio tracks, styled subtitle support, chapter navigation, and file attachments that MPEG Program Stream simply cannot provide.
DVD rip organization is the most common use case. DVD VOB files (which are essentially MPG Program Streams) contain MPEG-2 video, multiple audio tracks, and bitmap subtitles. Converting to MKV preserves all these tracks in a single file with proper language tags, making them browsable in media servers like Plex, Jellyfin, and Kodi. Users can select audio languages and subtitle tracks directly from the player interface — something impossible with a standalone .mpg file.
Media server libraries benefit enormously from the MPG-to-MKV conversion. Plex, Jellyfin, and Kodi all handle MKV as a first-class format, automatically detecting audio and subtitle tracks, displaying chapter markers, and showing embedded cover art. The same MPG content in its native format would appear as a generic video file without this rich metadata support. MKV is effectively the standard container for personal media libraries.
For archival purposes, MKV with the original MPEG-2 codec (lossless remux) preserves bit-perfect quality while gaining a modern container with extensible metadata. For space optimization, re-encoding from MPEG-2 to H.264 within MKV reduces file sizes by 60-80% with negligible quality difference. The choice depends on whether you prioritize archival integrity or storage efficiency.
Key Benefits of Converting MPG to MKV:
- Lossless Remux: Copy MPEG-2 streams into MKV with zero quality loss
- Multi-Track Audio: Preserve all DVD audio tracks with language tags
- Subtitle Support: Embed SRT, ASS/SSA, PGS, VobSub subtitle tracks
- Chapter Navigation: Add chapters for scene-based browsing
- Media Server Ready: Optimal format for Plex, Jellyfin, Kodi, Emby
- Codec Flexibility: Keep MPEG-2 or upgrade to H.264/H.265/AV1
- Open Source: Royalty-free format with active development
Practical Examples
Example 1: DVD Collection to Plex Media Server
Scenario: A cinephile has 300+ DVDs ripped as MPG/VOB files and wants to build an organized Plex media server with proper audio track selection and subtitle support.
Source: blade_runner_dvd.mpg (6.1 GB, 720x480, MPEG-2, EN+FR audio, 117 min) Conversion: MPG → MKV (re-encode H.264 with multi-track) Result: blade_runner.mkv (1.4 GB, H.264, 2 audio + 4 subtitle tracks) Plex library workflow: 1. Re-encode MPEG-2 to H.264 at CRF 20 (excellent quality) 2. Preserve English 5.1 and French stereo audio tracks 3. Add SRT subtitles (EN, FR, DE, ES) with language tags 4. Add chapter markers from DVD chapter points Result: Plex auto-detects all tracks and chapters Result: Users select audio/subtitle language from player UI Result: 77% file size reduction enables larger library Result: Chapter thumbnails visible in Plex timeline
Example 2: Broadcast Archive Preservation
Scenario: A university media studies department has thousands of broadcast recordings in MPG format from off-air capture. They want to preserve the original quality while adding descriptive metadata and making content searchable in their Jellyfin catalog.
Source: bbc_documentary_2003.mpg (3.2 GB, 720x576, MPEG-2, 60 min) Conversion: MPG → MKV (lossless remux, metadata-enriched) Result: bbc_documentary_2003.mkv (3.2 GB, MPEG-2, same quality) Archival workflow: 1. Lossless remux MPG to MKV (zero quality loss, instant) 2. Add descriptive metadata (title, date, channel, topic) 3. Add English closed captions as SRT subtitle track 4. Embed program guide thumbnail as attachment Result: Bit-perfect preservation of original MPEG-2 video Result: Searchable by title, date, and topic in Jellyfin Result: Captions enable text search of spoken content Result: Modern container with extensible metadata fields
Example 3: Multi-Language Educational Content
Scenario: An international school has science documentaries on DVD in English. Teachers want to add narration tracks in Spanish, Mandarin, and Arabic, plus subtitles in 6 languages, all in a single file for classroom projection.
Source: solar_system_documentary.mpg (4.0 GB, 720x480, MPEG-2, EN audio) Conversion: MPG → MKV (multi-language educational package) Result: solar_system.mkv (2.1 GB, H.264, 4 audio + 6 subtitle tracks) Educational packaging: 1. Re-encode video to H.264 for smaller file size 2. Keep original English audio (AAC 5.1) 3. Add Spanish, Mandarin, Arabic narration tracks 4. Add subtitles: EN, ES, ZH, AR, FR, DE 5. Add chapters: one per planet/topic segment Result: Teacher selects audio language for class group Result: Students follow along with subtitles in their language Result: Chapter navigation jumps to each planet's section Result: Single file replaces multiple DVD copies
Frequently Asked Questions (FAQ)
Q: Can I convert MPG to MKV without re-encoding?
A: Yes. MKV can hold MPEG-2 video directly, so ffmpeg -i input.mpg -c copy output.mkv performs an instant lossless remux. The MPEG-2 video and audio streams are copied bit-for-bit into the MKV container. File size is virtually identical. This is the fastest conversion option and preserves original quality perfectly.
Q: Should I remux or re-encode when converting to MKV?
A: Remux if you want archival-quality preservation with zero processing time. Re-encode to H.264 if you want 60-80% smaller files for a media server library. Re-encode to H.265 for maximum compression (80-90% smaller). For most home media server use cases, H.264 re-encoding provides the best balance of quality, file size, and compatibility.
Q: Will Plex/Jellyfin/Kodi play MKV with MPEG-2 inside?
A: Yes. All three media servers support MKV containers with MPEG-2 video. However, some client devices (smart TVs, Roku, Chromecast) may not have MPEG-2 hardware decoders, forcing the server to transcode in real-time. Re-encoding to H.264 before adding to your library eliminates this transcoding overhead and ensures direct play on all devices.
Q: How do I preserve DVD chapter markers in the MKV?
A: If your MPG source is from a DVD rip that includes chapter information, FFmpeg may detect and transfer chapters automatically during remux. For manual chapter creation, use MKVToolNix's chapter editor or create a chapter file (simple XML format) and embed it with mkvmerge --chapters chapters.xml -o output.mkv input.mkv.
Q: Can I add subtitles to the MKV after conversion?
A: Yes. MKVToolNix lets you add or remove tracks from MKV files without re-encoding: mkvmerge -o output.mkv input.mkv subs_en.srt subs_fr.srt. You can add SRT, ASS/SSA, PGS, or VobSub subtitle files at any time. This non-destructive track management is one of MKV's greatest advantages.
Q: Will MKV files play on my smart TV?
A: Most modern smart TVs support MKV with H.264 video. Some also support H.265. MKV with MPEG-2 video may or may not be supported depending on the TV model. Samsung, LG, and Sony TVs from 2016+ generally have good MKV support. For guaranteed playback, re-encode to H.264 within the MKV container.
Q: Is MKV better than MP4 for storing converted MPG content?
A: MKV is better for media libraries that need multiple audio tracks, advanced subtitles, and chapter navigation. MP4 is better for content you'll share, stream, or play on mobile devices. For a Plex/Jellyfin/Kodi library: use MKV. For uploading to YouTube or sending to someone's phone: use MP4.
Q: How much smaller will the MKV be compared to the MPG?
A: With lossless remux: identical size (just container change). With H.264 re-encoding: 60-80% smaller (a 4 GB MPG becomes ~800 MB to 1.6 GB MKV). With H.265 re-encoding: 80-90% smaller (that same 4 GB becomes ~400 MB to 800 MB). The exact ratio depends on content complexity and encoding settings.