Convert MPEG to M4V — Free Online Tool
Convert MPEG files to M4V using H.264 video encoding and AAC audio — transforming legacy MPEG-1/2 broadcast content into an Apple-compatible container optimized for iTunes, iOS devices, and modern streaming. The conversion re-encodes both the video and audio streams, replacing outdated MPEG compression with efficient H.264 and AAC codecs that deliver smaller file sizes at comparable quality.
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
MPEG files typically carry MPEG-1 or MPEG-2 video streams alongside MP2 audio — codecs designed for broadcast television and DVD playback in the 1990s and early 2000s. M4V is an Apple-specific MPEG-4 container that expects H.264 (or H.265) video and AAC audio. Because none of these codecs overlap, this conversion requires full re-encoding of both streams: the MPEG-2 video is decoded frame by frame and re-compressed using libx264 with a CRF of 23 (a visually near-lossless quality level for H.264), while the MP2 audio is decoded and re-encoded as AAC at 128k bitrate. The output file also receives the -movflags +faststart flag, which relocates the MP4/M4V metadata (the 'moov atom') to the beginning of the file so it can begin playing before fully downloading — a requirement for smooth web and iTunes streaming.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool. In the browser version, this runs via FFmpeg.wasm compiled to WebAssembly, executing entirely within your browser with no server involvement. |
-i input.mpeg
|
Specifies the source MPEG file as input. FFmpeg will detect whether it contains MPEG-1 or MPEG-2 video and MP2, MP3, or AAC audio automatically based on the stream headers. |
-c:v libx264
|
Re-encodes the MPEG-1/2 video stream using the H.264 encoder (libx264), which is required since M4V cannot store MPEG-2 video and H.264 offers significantly better compression efficiency for the same visual quality. |
-c:a aac
|
Re-encodes the MP2 audio track (standard in MPEG broadcast files) to AAC-LC using FFmpeg's built-in AAC encoder, which is the audio codec expected by iTunes, iOS, and Apple TV for M4V playback. |
-crf 23
|
Sets the Constant Rate Factor for the H.264 encoder to 23, a balanced quality level where lower values (e.g., 18) produce higher quality larger files and higher values (e.g., 28) produce smaller files with more compression. For most MPEG broadcast source material, CRF 23 retains all perceptibly useful detail. |
-b:a 128k
|
Sets the AAC audio bitrate to 128 kilobits per second, which is the standard quality target for AAC audio and provides transparent quality for most stereo MP2 audio tracks found in MPEG broadcast recordings. |
-movflags +faststart
|
After encoding completes, rewrites the M4V file to place the MPEG-4 metadata (moov atom) at the beginning of the file rather than the end. This is essential for iTunes compatibility and HTTP streaming, allowing playback to begin before the entire file is downloaded. |
output.m4v
|
The filename and extension of the output file. The .m4v extension signals to iTunes, QuickTime, and iOS that this is an Apple-compatible MPEG-4 video container, enabling direct import and playback without format negotiation. |
Common Use Cases
- Importing old broadcast recordings, home videos, or DVD-ripped MPEG files into iTunes or the Apple TV app, which require M4V or MP4 containers with H.264/AAC streams
- Making legacy MPEG news archive footage or training videos compatible with iOS devices like iPhone and iPad, which do not natively support MPEG-1 or MPEG-2 playback
- Preparing MPEG content for distribution through Apple's iTunes Store or internal Apple Business Manager video libraries, which mandate M4V-compatible encoding
- Converting MPEG broadcast captures from DVRs or older capture cards into a format that works seamlessly in iMovie or Final Cut Pro for editing
- Reducing file size of large MPEG-2 video files — H.264 typically achieves the same perceived quality at roughly half the bitrate of MPEG-2, making storage and sharing more practical
- Modernizing digitized VHS or Betacam archives that were saved as MPEG files so they can be embedded in web pages or streamed from Apple-compatible media servers
Frequently Asked Questions
Because both MPEG-2 and H.264 are lossy formats, converting between them involves a second generation of lossy compression, which can introduce some quality degradation. However, H.264 at CRF 23 is a high-quality setting that preserves most of the visual detail present in the MPEG-2 source. For typical broadcast or DVD-quality MPEG content, the difference is rarely perceptible to the naked eye. If you need maximum fidelity, you can lower the CRF value (e.g., to 18) in the FFmpeg command to increase quality at the cost of a larger output file.
MPEG files typically carry MP2 audio, which is a legacy broadcast audio codec with different loudness characteristics than AAC. The re-encoding process converts MP2 to AAC at 128k bitrate, which is a faithful transcoding but may produce slightly different perceived loudness depending on the original MP2 stream's normalization. If you need higher-fidelity audio, increase the -b:a value in the FFmpeg command to 192k or 256k to give the AAC encoder more data to work with.
M4V fully supports subtitles and chapters, but the MPEG format itself does not carry embedded subtitle tracks or chapter metadata in a way that FFmpeg can automatically transfer to M4V. Most MPEG files lack these features entirely. If your source MPEG content came from a DVD and has subtitle data, it would typically be in a separate file and would need to be added to the M4V separately — the conversion command shown here does not include subtitle mapping.
Video quality is controlled by the -crf flag, which accepts values from 0 (lossless, very large files) to 51 (lowest quality, very small files). The default of 23 is a balanced setting for general use. To increase quality, lower the number — for example, -crf 18 produces near-transparent quality for most MPEG source material. To reduce file size at the cost of some quality, raise it — -crf 28 is still acceptable for web delivery. You can also switch from the default libx264 encoder to libx265 with -c:v libx265 for better compression efficiency, though H.265 is slightly less compatible with older Apple devices.
Yes. On Linux or macOS, you can use a shell loop: `for f in *.mpeg; do ffmpeg -i "$f" -c:v libx264 -c:a aac -crf 23 -b:a 128k -movflags +faststart "${f%.mpeg}.m4v"; done`. On Windows Command Prompt, use: `for %f in (*.mpeg) do ffmpeg -i "%f" -c:v libx264 -c:a aac -crf 23 -b:a 128k -movflags +faststart "%~nf.m4v"`. The browser-based tool processes one file at a time, so the FFmpeg command is the recommended approach for batch jobs.
MPEG-2 files from broadcast or DVD sources are often encoded at fixed high bitrates (3–8 Mbps or more) to meet broadcast standards, while H.264 with CRF 23 uses variable bitrate encoding and typically achieves similar visual quality at significantly lower bitrates. For high-bitrate MPEG-2 sources, the M4V output is usually noticeably smaller. However, if your source MPEG was already heavily compressed at a low bitrate (such as an MPEG-1 file at 1.5 Mbps), the H.264 output may be similar in size or even slightly larger depending on content complexity.
Technical Notes
MPEG containers (.mpeg, .mpg) are tightly coupled to their codec payloads — MPEG-1/2 video and MP2 audio — which means there is no possibility of stream copying (remuxing) when targeting M4V; every stream must be fully decoded and re-encoded. The libx264 encoder used here produces a Baseline, Main, or High Profile H.264 stream depending on content, all of which are compatible with Apple's M4V playback requirements. The AAC encoder in FFmpeg produces MPEG-4 AAC-LC by default, which is the most broadly compatible AAC variant across all Apple devices and iTunes. One important limitation: MPEG files occasionally contain variable frame rate streams or non-standard GOP structures from older capture hardware, which can confuse the encoder and produce audio/video sync drift in the output — if you experience sync issues, adding -vsync cfr to the command can help. The -movflags +faststart post-processing step rewrites the output file to move the moov atom to the front, which is essential for M4V files intended for iTunes import or HTTP progressive streaming but adds a brief second pass at the end of encoding.