Convert M4V to MPG — Free Online Tool

Convert M4V files (Apple's iTunes-compatible MPEG-4 container, typically encoded with H.264) to MPG format using the MPEG-2 video codec and MP2 audio — producing files compatible with DVD authoring software, broadcast pipelines, and legacy media players that predate modern container support.

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

This conversion is a full transcode, not a remux. The H.264 or H.265 video stream inside the M4V container must be decoded and re-encoded as MPEG-2 video, because MPG does not support modern H.264/H.265 codecs. Likewise, the AAC audio track common in M4V files is transcoded to MP2 (MPEG-1 Audio Layer II), the standard audio codec for MPEG-2 program streams. The output is an MPEG-2 Program Stream (.mpg), which is the same fundamental format used on DVDs. Because both formats are lossy, this two-step compression introduces some generation loss — the output will not be identical in quality to the source even at high quality settings. Metadata such as iTunes chapter markers, multiple audio tracks, and embedded subtitles present in the M4V file are not carried over, as the MPG container does not support these features.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg program. In the browser-based version of this tool, FFmpeg runs entirely via WebAssembly (ffmpeg.wasm) — no data leaves your device. When running locally, this calls your system-installed FFmpeg binary.
-i input.m4v Specifies the input file — an M4V file, which is Apple's MPEG-4 container typically holding H.264 or H.265 video and AAC audio. FFmpeg will probe this file to detect its streams before beginning the transcode.
-c:v mpeg2video Sets the video codec for the output to MPEG-2, which is required by the MPG container. This triggers a full re-encode of the H.264 (or H.265) video stream from the M4V — the original compressed video is decoded frame by frame and re-compressed as MPEG-2.
-c:a mp2 Sets the audio codec to MP2 (MPEG-1 Audio Layer II), the standard audio format for MPEG-2 program streams and DVD video. The AAC audio from the M4V source is fully transcoded to MP2, which has slightly lower audio efficiency than AAC at the same bitrate.
-q:v 2 Sets the MPEG-2 video quality using the quantization scale, where 1 is highest quality and 31 is lowest. A value of 2 produces near-maximum quality MPEG-2 output, helping offset the quality loss inherent in transcoding from the more efficient H.264 codec used in the source M4V.
-b:a 192k Sets the MP2 audio bitrate to 192 kilobits per second, which is the standard audio bitrate for DVD-quality MPEG-2 program streams and provides a good balance of audio fidelity and file size for the MP2 codec.
output.mpg Specifies the output filename with the .mpg extension. FFmpeg uses this extension to confirm the MPEG-2 Program Stream container format, which is the appropriate wrapper for mpeg2video and mp2 codec streams and is compatible with DVD authoring tools and legacy media players.

Common Use Cases

  • Importing iTunes-purchased or recorded M4V video into legacy DVD authoring software (such as DVD Architect or Encore) that requires MPEG-2 program stream input
  • Preparing video content for broadcast or cable delivery workflows that mandate MPEG-2 encoded MPG files as an ingest format
  • Playing back video on older DVD players or set-top boxes with USB ports that only support MPEG-1/MPEG-2 files and cannot decode H.264
  • Archiving M4V content into MPEG-2 format for long-term storage in environments where playback infrastructure relies on MPEG-2 decoders
  • Converting iOS-captured or iTunes video to MPG for use with older video editing systems (such as early versions of Final Cut Pro or Avid) that natively handle MPEG-2 streams
  • Creating VCD- or SVCD-compatible video files from M4V source content for distribution on physical media using CD-R

Frequently Asked Questions

Yes, some quality loss is unavoidable. The H.264 video in the M4V is first decoded and then re-encoded as MPEG-2, which is a less efficient codec — meaning MPEG-2 requires more bitrate to achieve comparable visual quality to H.264. The AAC audio is also transcoded to MP2. Since both the source M4V and the output MPG are lossy formats, this is a generation loss scenario: each encode introduces artifacts, and the output will look slightly softer or blockier than the original, especially in complex motion scenes.
The MPG container format (MPEG-2 Program Stream) was standardized in the early 1990s and has no provision for chapter markers, embedded subtitle tracks, or multiple named audio streams. These features are part of the M4V/MP4 container specification and are lost during conversion. If you need to preserve subtitles, you would need to burn them into the video stream during encoding using FFmpeg's subtitle filter, which is a separate step not included in this base conversion command.
The -q:v parameter controls MPEG-2 quantization scale, where 1 is the highest quality and 31 is the lowest. A value of 2 produces near-maximum quality MPEG-2 output with a relatively large file size, which helps minimize the perceptible quality loss introduced by transcoding from H.264. This is not directly comparable to the CRF scale used for H.264/H.265 in M4V encoding, but setting -q:v 2 is the recommended starting point when quality preservation is the priority.
The command as shown processes a single file, but you can adapt it for batch processing in a shell script. On Linux or macOS, use: for f in *.m4v; do ffmpeg -i "$f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "${f%.m4v}.mpg"; done. On Windows Command Prompt: for %f in (*.m4v) do ffmpeg -i "%f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "%~nf.mpg". This is particularly useful for converting a library of iTunes downloads in one pass.
No. M4V files purchased from iTunes with Apple FairPlay DRM cannot be decoded by FFmpeg, and the conversion will fail with an error. FFmpeg can only process M4V files where the video stream is accessible — such as DRM-free M4V files, self-encoded M4V files, or iTunes content that has been legitimately stripped of DRM through authorized methods. If you own the content, check whether your copy is DRM-free before attempting conversion.
Increase the -q:v value in the command — for example, changing -q:v 2 to -q:v 5 or -q:v 8 will lower the MPEG-2 bitrate and reduce file size at the cost of some visual quality. You can also lower the audio bitrate by changing -b:a 192k to -b:a 128k. For significant size reduction on longer videos, you may also consider scaling down the resolution by adding -vf scale=720:-2 (for 720-pixel-wide output) before the output filename. Keep in mind that MPEG-2 is inherently less space-efficient than H.264, so MPG files will generally be larger than their M4V counterparts at equivalent quality.

Technical Notes

The MPG container in this context produces an MPEG-2 Program Stream, the same format underlying standard-definition DVD video. The MPEG-2 video codec (mpeg2video in FFmpeg) supports up to 1080i resolution but is far less efficient than the H.264 typically found in M4V files — expect output files to be significantly larger than the source M4V at comparable quality levels. The MP2 audio codec encoded at 192k is the standard audio format for MPEG-2 video and provides good compatibility with DVD players and broadcast hardware. One important limitation: the MPG format does not support pixel-level transparency (alpha channels), multiple audio tracks, subtitle streams, or chapter metadata — all of which may be present in a well-authored M4V file. These are silently dropped during conversion. If the source M4V contains an H.265 (HEVC) video track, FFmpeg must first fully decode it before re-encoding to MPEG-2, which is computationally intensive and may be slow on older hardware. Finally, because MPG does not use the faststart flag (which is M4V/MP4-specific for web streaming), the output file is structured for sequential playback rather than progressive web delivery.

Related Tools