Convert MPG to M4V — Free Online Tool

Convert MPG files (MPEG-1/2 video with MP2 audio) to M4V format using H.264 video and AAC audio — ideal for making legacy broadcast or DVD-sourced footage compatible with Apple devices, iTunes, and iOS. The conversion re-encodes both streams, trading the older MPEG-2/MP2 codec pair for the far more efficient and widely supported H.264/AAC combination.

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

MPG files typically carry MPEG-2 video and MP2 audio, a codec pair designed for broadcast television, VCDs, and DVDs in the 1990s and 2000s. Neither of these streams is natively compatible with the M4V container or Apple's ecosystem, so this conversion performs a full re-encode of both tracks. The video is decoded from MPEG-2 and re-encoded using libx264 (H.264), which delivers significantly better compression at comparable visual quality — meaning the output file is often noticeably smaller than the source MPG. The MP2 audio is simultaneously decoded and re-encoded to AAC at 128k, which is the standard audio codec for M4V and iTunes-compatible content. The -movflags +faststart flag reorganizes the MP4/M4V metadata to the front of the file, enabling progressive playback in web and streaming contexts before the full file is downloaded.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg program. When running locally on your desktop, this must be installed and available in your system PATH. In the browser version of this tool, FFmpeg runs via WebAssembly (FFmpeg.wasm) entirely within your browser without any server upload.
-i input.mpg Specifies the input MPG file. FFmpeg will detect that it contains an MPEG-2 video stream and an MP2 audio stream, both of which will need to be decoded and re-encoded since neither is natively compatible with the M4V container.
-c:v libx264 Sets the video encoder to libx264, which encodes H.264 video. This replaces the MPEG-2 video from the source MPG with a modern, far more compression-efficient codec that is natively supported by all Apple devices, iTunes, and iOS.
-c:a aac Sets the audio encoder to AAC, replacing the MP2 audio track from the MPG source. AAC is the required audio codec for M4V and iTunes compatibility, and at equivalent bitrates it delivers better quality than the MP2 format used in MPEG-2 broadcast and VCD content.
-crf 23 Sets the Constant Rate Factor for the H.264 encoder to 23, which is the libx264 default and represents a good balance between file size and visual quality for most standard-definition MPEG-2 source material. Lower values (e.g., 18) increase quality and file size; higher values (e.g., 28) reduce both.
-b:a 128k Targets an AAC audio bitrate of 128 kilobits per second, which is appropriate for stereo audio content and is the standard for iTunes-distributed video. Since MP2 audio in MPG files is often encoded at 192k or 256k, this setting may slightly reduce audio bitrate while actually improving perceptual quality due to AAC's superior efficiency over MP2.
-movflags +faststart Moves the MP4/M4V metadata atom (moov) to the beginning of the output file. This is essential for streaming and web playback, allowing Apple devices and browsers to begin playing the M4V before the entire file is downloaded, rather than waiting for metadata at the end of the file.
output.m4v Specifies the output filename with the .m4v extension, which signals an Apple-compatible MPEG-4 container. The M4V extension ensures correct handling by iTunes, QuickTime, and iOS apps, though the underlying structure is functionally identical to an MP4 file.

Common Use Cases

  • Converting archived broadcast TV recordings or news footage captured in MPEG-2 format into M4V so they can be imported into iTunes or synced to an iPhone or iPad
  • Preparing VCD or DVD-ripped MPG files for playback on Apple TV or QuickTime without format compatibility errors
  • Modernizing a library of legacy corporate training videos originally encoded as MPG for VCD distribution so they can be hosted and streamed from an Apple-compatible media server
  • Migrating old home movies digitized from VHS to MPG into a more storage-efficient M4V format that integrates with the Apple Photos ecosystem
  • Submitting video content to iTunes Connect or Apple Podcasts video feeds, which require MPEG-4 compatible containers with H.264 video rather than MPEG-2
  • Re-encoding MPEG-2 broadcast clips for use in Final Cut Pro projects where M4V/H.264 assets perform better during editing and proxying

Frequently Asked Questions

Yes, some generation loss occurs because both the MPEG-2 video and MP2 audio must be fully re-encoded — this is not a lossless remux. However, H.264 at CRF 23 is generally considered visually transparent for most source material, and the perceptible difference from a well-encoded MPEG-2 source is minimal. If you're working with high-bitrate MPEG-2 broadcast footage and need to minimize loss, lower the CRF value to 18 or below in the FFmpeg command, at the cost of a larger output file.
This is expected and is one of the main benefits of this conversion. MPEG-2, the video codec used in MPG files, is significantly less efficient than H.264 (libx264). H.264 can achieve the same perceptual quality at roughly half the bitrate of MPEG-2, so the M4V output is often 40–60% smaller than the source MPG. The switch from MP2 to AAC audio also contributes modest additional savings.
Yes. Despite the Apple-centric M4V branding, the container is structurally identical to MP4, and the H.264 video and AAC audio codecs inside it are universally supported. VLC, Windows Media Player, Android devices, smart TVs, and most modern media players will play M4V files without issue. The M4V extension only becomes restrictive when Apple's FairPlay DRM is applied, which this tool does not do.
M4V does support subtitles, chapters, and multiple audio tracks at the container level, which is an advantage over the more limited MPG format. However, standard MPG files do not carry subtitle or chapter data, so there is nothing to transfer during this conversion. If you want to add subtitles or chapters to the M4V output, you would need to supply an external subtitle file and modify the FFmpeg command to include it.
The -crf 23 flag controls H.264 quality on a scale where lower numbers mean higher quality and larger files, and higher numbers mean lower quality and smaller files. The range for libx264 is 0 (lossless) to 51 (worst). For high-quality archival conversion of MPG broadcast footage, try -crf 18. For web delivery where file size matters more, -crf 28 or -crf 30 will produce significantly smaller files with acceptable quality for most standard-definition MPG sources.
The single-file command shown is not directly batch-capable, but you can wrap it in a shell loop. On Linux or macOS, run: for f in *.mpg; do ffmpeg -i "$f" -c:v libx264 -c:a aac -crf 23 -b:a 128k -movflags +faststart "${f%.mpg}.m4v"; done. On Windows Command Prompt, use: for %f in (*.mpg) do ffmpeg -i "%f" -c:v libx264 -c:a aac -crf 23 -b:a 128k -movflags +faststart "%~nf.m4v". This is especially useful for batch-converting entire VCD or DVD rip libraries.

Technical Notes

MPG is a multiplexed container defined by the MPEG systems standard, tightly coupled to its MPEG-1 or MPEG-2 video codec and MP2 audio codec. Because the codec pair is embedded into the container specification itself (unlike more flexible containers like MKV or MP4), converting to M4V always requires a full transcode of both streams — stream copying is not an option here. The output M4V uses the libx264 encoder with a constant rate factor (CRF) quality model, which adapts bitrate scene-by-scene rather than targeting a fixed bitrate as MPEG-2 encoders traditionally did. This means quality is more consistent across the output file even if the source MPG had variable-complexity scenes. One limitation to be aware of: MPG files from broadcast or VCD sources often contain interlaced video (fields rather than progressive frames). If your source MPG is interlaced, you may notice combing artifacts in the M4V output. Adding a deinterlace filter (-vf yadif) to the FFmpeg command before the output filename resolves this. Pixel aspect ratio (PAR) metadata common in DVD-sourced MPG files (e.g., 720x480 with non-square pixels for 4:3 or 16:9 display) is generally preserved correctly by FFmpeg when writing to M4V, but verifying playback dimensions on a target Apple device after conversion is advisable for broadcast-origin content.

Related Tools