Convert MPG to M4A — Free Online Tool
Extract the audio track from an MPG video file and save it as an M4A file encoded with AAC — the modern, efficient codec used by iTunes, Apple Music, and most streaming platforms. This tool strips the MPEG-1/2 video stream entirely and re-encodes the MP2 or MP3 audio from the MPG container into a clean, compact AAC-encoded M4A file ready for any Apple device or podcast workflow.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MPG 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
MPG files store video encoded as MPEG-1 or MPEG-2 alongside audio typically encoded in MP2 (MPEG-1 Audio Layer II) — an older, less efficient codec that predates MP3 and AAC. During this conversion, FFmpeg discards the video stream entirely (using the -vn flag) and re-encodes the MP2 audio as AAC inside an MPEG-4 (.m4a) container. This is a full audio transcode — not a remux — because MP2 audio cannot be placed directly into an M4A container, and AAC offers significantly better quality at the same bitrate compared to the original MP2 encoding. The output is a streamlined audio-only file with no video overhead, optimized for iTunes, Apple devices, and web audio playback.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool, which handles all decoding, transcoding, and muxing operations. In the browser version of this tool, FFmpeg runs as a WebAssembly module — the same underlying logic as the desktop command shown here. |
-i input.mpg
|
Specifies the input MPG file. FFmpeg will detect that it is an MPEG-1/2 program stream and identify the video codec (typically mpeg2video) and audio codec (typically mp2) automatically from the container headers. |
-c:a aac
|
Sets the audio codec for the output to AAC (Advanced Audio Coding), the native and most compatible codec for M4A containers. This triggers a full transcode from the source MP2 audio in the MPG to AAC, since the two codecs are entirely incompatible at the bitstream level. |
-b:a 128k
|
Sets the output AAC audio bitrate to 128 kilobits per second. At this bitrate, AAC produces perceptually transparent audio for most speech content and acceptable quality for music — and because AAC is more efficient than the MP2 typically found in MPG files, 128k AAC often rivals higher-bitrate MP2 in perceived quality. |
-vn
|
Disables video output entirely, instructing FFmpeg to drop the MPEG-1 or MPEG-2 video stream from the MPG source. This flag is essential because M4A is an audio-only container and cannot store video streams — without it, FFmpeg would return an error. |
output.m4a
|
Specifies the output filename with the .m4a extension, which tells FFmpeg to use the MPEG-4 audio container format. The .m4a extension signals to iTunes, Apple Music, iOS, and most media players that this is an audio-only MPEG-4 file encoded with AAC. |
Common Use Cases
- Extracting the audio commentary or narration from archived VCD or DVD-sourced MPG recordings for use in a podcast or audiobook workflow
- Pulling music or soundtrack audio from MPEG broadcast recordings to create M4A files compatible with iTunes or Apple Music libraries
- Converting old MPG training or lecture videos into M4A audio files for listening on an iPhone or iPod without needing the video
- Archiving the audio from MPEG-1 home video recordings into a modern, compact AAC format that takes up far less storage space
- Preparing audio extracted from broadcast MPG captures for upload to podcast hosting platforms that prefer AAC-encoded M4A files
- Stripping the video from MPG screen recordings or presentations to share as audio-only M4A files for review or distribution
Frequently Asked Questions
Yes, there is a generation of quality loss because this conversion involves transcoding from one lossy format (MP2 in the MPG container) to another lossy format (AAC in M4A). However, at the default 128k bitrate, AAC is generally considered to sound better than MP2 at equivalent bitrates, so the perceptual quality difference is often minimal or even an improvement for casual listening. For archival purposes, you may want to increase the bitrate to 192k or 256k to reduce transcoding artifacts.
M4A is strictly an audio-only container — it is the audio-specific variant of the MPEG-4 format and cannot store video streams. The -vn flag in the FFmpeg command explicitly instructs FFmpeg to discard the video stream from the MPG source. If you need to keep the video and just change the container, you should convert to MP4 or MKV instead of M4A.
The audio bitrate is controlled by the -b:a flag in the command. The default is 128k, which is suitable for speech and moderate-quality music. To improve quality, replace 128k with 192k or 256k — for example: ffmpeg -i input.mpg -c:a aac -b:a 256k -vn output.m4a. For voice recordings or podcasts, 128k is usually sufficient, while music archiving benefits from 192k or higher.
MPG files based on MPEG-1/2 standards have very limited metadata support and rarely contain structured tag information. M4A supports rich iTunes-style metadata including title, artist, album, and artwork, but since the source MPG typically has no such tags, the output M4A will generally be untagged. You would need to add metadata manually after conversion using a tool like iTunes, MusicBrainz Picard, or by appending -metadata title='Your Title' to the FFmpeg command.
Yes, MP2 (MPEG-1 Audio Layer II) is an older codec than MP3 (Layer III) and is common in broadcast and VCD/DVD-era MPG files. FFmpeg fully supports decoding MP2, so the conversion will work correctly regardless of whether your MPG contains MP2 or MP3 audio. The output M4A will always be AAC-encoded regardless of the source audio codec, since AAC is the native and best-supported codec for the M4A container.
The single-file command shown here can be extended for batch processing on the command line. On Linux or macOS, you can run: for f in *.mpg; do ffmpeg -i "$f" -c:a aac -b:a 128k -vn "${f%.mpg}.m4a"; done. On Windows Command Prompt, use: for %f in (*.mpg) do ffmpeg -i "%f" -c:a aac -b:a 128k -vn "%~nf.m4a". This is especially useful for large collections of VCD or broadcast recordings that exceed the 1GB browser limit.
Technical Notes
MPG files using the MPEG-2 standard store audio as MP2 (MPEG-1 Audio Layer II) at typically 192–384 kbps, a codec designed in the late 1980s for broadcast and optical disc media. AAC (Advanced Audio Coding), standardized in 1997 as the successor to MP3, achieves comparable or better perceptual quality at roughly half the bitrate of MP2, making the resulting M4A file noticeably smaller than the audio-only portion of the source MPG. The M4A container is technically an MPEG-4 Part 14 file with an audio-only restriction, and it supports gapless playback metadata and iTunes chapter markers — features entirely absent from the MPG format. One important limitation: MPG files do not support multiple audio tracks or subtitle streams, so there is no risk of missing secondary audio during extraction. The -vn flag is a required special flag for M4A output since FFmpeg would otherwise attempt to include video, which the container cannot accept. For maximum compatibility with Apple devices and iTunes, the default AAC codec used here (FFmpeg's native AAC encoder) produces fully compliant output, though for the highest quality AAC encoding, the external libfdk_aac encoder (if available in your local FFmpeg build) is generally preferred.