Convert MP4 to MPG — Free Online Tool

Convert MP4 files to MPG format using MPEG-2 video and MP2 audio encoding — the standard codec pairing for DVD authoring, broadcast workflows, and legacy VCD-compatible output. This tool re-encodes your MP4 directly in your browser using FFmpeg.wasm, no upload required.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

MP4 and MPG are fundamentally different container formats with incompatible codec ecosystems. Your MP4 likely contains H.264 (libx264) video and AAC audio — neither of which is natively supported in standard MPEG program streams. This conversion fully re-encodes the video stream using the MPEG-2 video codec and transcodes the audio to MP2 (MPEG-1 Audio Layer II), producing a proper MPEG program stream (.mpg) file. Because both streams must be re-encoded from scratch, this is a computationally intensive process compared to a simple remux. The output uses a fixed quantizer scale (-q:v 2) for near-maximum MPEG-2 video quality, with 192k MP2 audio — the standard bitrate for DVD-compliant audio tracks.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary — the open-source multimedia processing engine that handles all decoding, re-encoding, and muxing for this MP4-to-MPG conversion.
-i input.mp4 Specifies the input file. FFmpeg reads the MP4 container and demuxes the H.264 video and AAC audio streams for re-encoding into the MPEG-2 program stream format.
-c:v mpeg2video Sets the video codec to MPEG-2, fully re-encoding the source H.264 video stream into the MPEG-2 format required by the MPG container and DVD/broadcast standards.
-c:a mp2 Sets the audio codec to MP2 (MPEG-1 Audio Layer II), transcoding the source AAC audio into the audio format natively expected by MPEG program streams and DVD authoring pipelines.
-q:v 2 Sets the MPEG-2 video quantizer scale to 2, the near-maximum quality setting on a scale of 1–31 where lower values mean better quality and larger files. A value of 2 minimizes compression artifacts in the re-encoded MPEG-2 output.
-b:a 192k Sets the MP2 audio stream bitrate to 192 kilobits per second, which is the standard bitrate for stereo audio in DVD-compatible MPEG-2 program streams, balancing file size and audio fidelity.
output.mpg Defines the output filename with the .mpg extension, which signals FFmpeg to write an MPEG program stream container — the correct encapsulation format for MPEG-2 video and MP2 audio.

Common Use Cases

  • Preparing video files for import into DVD authoring software such as DVD Architect or Nero Vision, which expect MPEG-2 program stream input
  • Delivering broadcast-compatible video to television stations or post-production facilities that require MPEG-2 encoded masters in MPG containers
  • Converting modern MP4 recordings for playback on older DVD players or set-top boxes that cannot decode H.264 content
  • Creating VCD or SVCD-compatible video files for archiving content on physical media using legacy disc formats
  • Supplying MPG files to video editing systems or hardware encoders from the early 2000s that only accept MPEG-1/2 program streams
  • Archiving MP4 content in an MPEG-2 format as a long-term preservation copy in a format standardized by ISO/IEC 13818

Frequently Asked Questions

Yes — this conversion involves a full re-encode of both the video and audio streams, so some generation loss is unavoidable. Your H.264 video is decoded and then re-encoded as MPEG-2, which is a less efficient codec, meaning the MPG file will generally be larger than the source MP4 at comparable visual quality. The default -q:v 2 setting produces near-maximum MPEG-2 quality, minimizing visible degradation, but the output will not be bit-for-bit identical to the source.
MPEG-2 is a significantly older and less efficient video codec than H.264 (the typical codec in MP4 files). H.264 achieves much higher compression using advanced motion estimation and entropy coding techniques that MPEG-2 lacks. As a result, an MPEG-2 encode at equivalent visual quality requires considerably more data — often 2x to 4x the file size of an H.264 source at the same resolution and frame rate. This is a fundamental tradeoff of the format, not a tool limitation.
No. The MPEG program stream format used in standard MPG files does not support embedded subtitle tracks, chapter markers, or multiple selectable audio streams in the way MP4 does. Any subtitle tracks, chapter data, or secondary audio tracks present in your source MP4 will be dropped during conversion. If you need to preserve subtitles, you should burn them into the video before converting, using an overlay filter in FFmpeg.
The output uses MPEG-2 video and MP2 audio, which are the correct codec choices for DVD-compatible content. However, DVD compliance also requires specific constraints on resolution (720x480 for NTSC, 720x576 for PAL), frame rate (29.97 or 25fps), and bitrate. If your source MP4 does not already match these parameters, you may need to add scaling and frame rate flags to the FFmpeg command before importing into DVD authoring software.
Video quality is controlled by the -q:v flag, which accepts values from 1 (best) to 31 (worst) for MPEG-2. The default value of 2 is near-maximum quality; raising it to 5 or 8 will reduce file size at the cost of more visible compression artifacts. Audio bitrate is set by -b:a — you can change 192k to 128k to reduce file size or 256k for slightly higher audio fidelity. For example: ffmpeg -i input.mp4 -c:v mpeg2video -c:a mp2 -q:v 5 -b:a 128k output.mpg
Yes. On Linux or macOS, you can run a shell loop: for f in *.mp4; do ffmpeg -i "$f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "${f%.mp4}.mpg"; done. On Windows Command Prompt, use: for %f in (*.mp4) do ffmpeg -i "%f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "%~nf.mpg". The browser-based tool processes one file at a time, so the desktop FFmpeg command is the recommended approach for bulk conversions.

Technical Notes

The MPG format (MPEG program stream) is governed by the ISO/IEC 13818 standard and is built around MPEG-2 video and MPEG-1/2 audio, making it inherently incompatible with the modern codecs found in most MP4 files. Unlike an MKV-to-MP4 conversion where H.264 video can often be stream-copied, every MP4-to-MPG conversion requires full re-encoding of both video and audio — there is no fast remux path. The -q:v parameter in MPEG-2 encoding functions as a quantizer scale (not a CRF like in H.264), where lower numbers preserve more detail but produce larger files; quality degradation becomes noticeable above -q:v 6 or 7 for most content. MP2 audio at 192k is the standard for DVD authoring and provides good fidelity for stereo content, though it lacks the efficiency of AAC. Notably, MPG does not support metadata fields such as title, artist, or year tags in any meaningful way, and no metadata from the source MP4 is preserved in the output. Transparency is not supported in either format. HDR content and color spaces beyond BT.601/BT.709 are not supported by MPEG-2, so HDR MP4 sources will be tone-mapped or clipped during the encode depending on your FFmpeg build and filters applied.

Related Tools