Convert MPEG to MPG — Free Online Tool
Convert MPEG files to MPG format using MPEG-2 video and MP2 audio codecs entirely in your browser. Since both formats share the same MPEG-1/2 codec family, this conversion preserves your video's structure while ensuring maximum compatibility with VCD, DVD, and broadcast workflows.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MPEG file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
Both MPEG and MPG are container formats built on the MPEG-1 and MPEG-2 standards, so this conversion re-encodes the video stream using the MPEG-2 video codec and the audio stream using MP2 at 192k bitrate. Despite the close relationship between the formats, FFmpeg performs a full encode rather than a simple stream copy because the output must conform strictly to the MPG container's MPEG program stream (PS) structure, which is required for compatibility with DVD players and broadcast equipment. The video quality scale (-q:v 2) targets near-best quality in MPEG-2's variable bitrate mode, and the resulting file uses the .mpg extension that legacy hardware and software universally recognize.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg command-line tool, which is the engine running inside your browser via WebAssembly (FFmpeg.wasm) for this conversion. On your desktop, this runs the locally installed FFmpeg binary. |
-i input.mpeg
|
Specifies the input file, an MPEG program stream containing MPEG-1 or MPEG-2 video and typically MP2 or MP3 audio. FFmpeg probes this file to detect the existing video and audio codec parameters before encoding. |
-c:v mpeg2video
|
Encodes the output video stream using the MPEG-2 video codec, which is the required video format for the MPG program stream container used in DVD, SVCD, and broadcast applications. If the source already contains MPEG-2 video, this performs a re-encode rather than a copy in order to produce a well-formed program stream output. |
-c:a mp2
|
Encodes the output audio using the MPEG-1 Audio Layer II (MP2) codec, the standard audio format defined in the MPEG program stream specification and required for DVD-Video and DVB broadcast compatibility. This ensures the MPG file will be accepted by hardware players and authoring tools that validate the audio codec strictly. |
-q:v 2
|
Sets the MPEG-2 video quality using the variable bitrate quantization scale, where 1 is the highest quality and 31 is the lowest. A value of 2 produces near-maximum quality with correspondingly large file sizes, minimizing the visual degradation introduced by re-encoding the MPEG-2 stream. |
-b:a 192k
|
Sets the MP2 audio bitrate to 192 kilobits per second, which is the standard broadcast-quality bitrate for MPEG audio and provides a good balance between file size and audio fidelity for speech and music content in video. |
output.mpg
|
Specifies the output filename with the .mpg extension, which signals to FFmpeg to write an MPEG program stream container and is the extension universally expected by DVD authoring tools, legacy media players, and broadcast ingest systems. |
Common Use Cases
- Renaming and re-muxing MPEG recordings from older digital camcorders or capture cards so they are recognized by DVD authoring software expecting a strict .mpg program stream
- Preparing video files for import into legacy broadcast editing systems (e.g., older Avid or Final Cut Pro 7 workflows) that require MPG-wrapped MPEG-2 content
- Converting MPEG recordings from personal video recorders (PVRs) or set-top boxes into MPG for use with DVD burning tools like DVD Flick or ImgBurn
- Standardizing a folder of mixed MPEG-1 and MPEG-2 recordings to a single MPEG-2/MP2 MPG output for archiving or handoff to clients expecting that format
- Producing VCD- or SVCD-compatible MPG files from raw MPEG captures for playback on standalone DVD players that support those disc formats
- Re-encoding a degraded or non-standard MPEG file with explicit codec and quality settings to produce a clean, well-formed MPG that older media players and kiosks can reliably play back
Frequently Asked Questions
Yes, some quality loss occurs because FFmpeg performs a full re-encode of both the video and audio streams rather than copying them. The video is re-encoded with MPEG-2 at -q:v 2, which is near the top of the quality scale (1 is best, 31 is worst), so visible degradation is minimal. The audio is encoded to MP2 at 192k, which is the standard bitrate for broadcast-quality MPEG audio. If your source MPEG is already MPEG-2 with MP2 audio, the generational loss will be subtle but technically present.
They refer to the same underlying MPEG program stream format, but the .mpg extension is specifically required by many DVD authoring tools, hardware DVD players, broadcast ingest systems, and legacy media software. The .mpeg extension is equally valid technically, but the .mpg extension has broader recognition among older hardware and software that does filename-extension-based format detection. This tool uses .mpg to maximize compatibility with those environments.
It depends on the resolution and bitrate of the source material. The MPG container with MPEG-2 video and MP2 audio is the correct format for DVD and SVCD compatibility, but standalone players also require specific resolutions (e.g., 720x480 for NTSC DVD, 352x240 for VCD) and bitrate constraints. This tool re-encodes to MPEG-2/MP2 MPG correctly, but you may need additional DVD authoring software to mux the file into a proper VIDEO_TS structure before burning. For direct disc playback, tools like DVD Flick or ImgBurn should be used after this conversion.
To change video quality, modify the -q:v value: lower numbers mean better quality (1 is highest, 31 is lowest), so -q:v 4 gives slightly smaller files with a minor quality tradeoff. To change audio quality, replace 192k in -b:a 192k with another bitrate such as 128k (smaller file, lower fidelity) or 256k (larger file, better fidelity). For example, a high-quality local archive command would be: ffmpeg -i input.mpeg -c:v mpeg2video -c:a mp2 -q:v 1 -b:a 256k output.mpg
Yes. On Linux or macOS, you can use a shell loop: for f in *.mpeg; do ffmpeg -i "$f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "${f%.mpeg}.mpg"; done. On Windows Command Prompt, use: for %f in (*.mpeg) do ffmpeg -i "%f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "%~nf.mpg". This processes every .mpeg file in the current directory and writes a corresponding .mpg file with the same base name. The browser-based tool handles one file at a time, so the FFmpeg command is the recommended approach for bulk conversions.
No. The MPG format based on the MPEG program stream specification does not support subtitle streams, chapter markers, or multiple audio tracks in the way modern containers like MKV or MP4 do. If your source MPEG file contains any of those streams, they will be dropped during conversion. Only the primary video stream and the first audio track are carried through to the output MPG file. If subtitle or multi-track preservation is important, consider a container format like MKV or MP4 instead.
Technical Notes
Both MPEG and MPG are rooted in the ISO MPEG-1/MPEG-2 standard and use the MPEG program stream (PS) multiplexing format, which interleaves video and audio packets into a single stream optimized for storage media rather than network transport (the latter uses MPEG transport stream, .ts). The MPEG-2 video codec used here (-c:v mpeg2video) produces intra- and inter-frame compressed video using DCT-based encoding with I, P, and B frames. The -q:v parameter controls the quantization scale factor: at q:v 2, the encoder uses very fine quantization steps, resulting in high fidelity and relatively large file sizes; raising this value toward 31 reduces file size at the cost of increased blocking and ringing artifacts typical of MPEG-2 compression. The MP2 audio codec (-c:a mp2) is the standard audio format defined in the MPEG-1 Audio Layer II specification and remains a required codec for DVD-Video and DVB broadcast compatibility. Neither format supports transparency, embedded subtitles, chapter metadata, or secondary audio tracks, so no metadata of those types is lost — it simply was never part of the MPEG program stream specification. File sizes will be broadly similar between input and output given identical quality settings, though a re-encode at -q:v 2 from a lower-quality source may produce a larger output file as the encoder allocates bits more generously.