Convert MPG to AIF — Free Online Tool
Extract and convert audio from MPG video files into AIF format, producing uncompressed PCM audio stored in Apple's Audio Interchange File Format. This conversion strips the lossy MPEG-1/2 video stream entirely and decodes the MP2 or MP3 audio track into raw 16-bit big-endian PCM — ideal for bringing broadcast or VCD-sourced audio into a lossless editing environment on macOS.
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 typically carry video encoded with MPEG-1 or MPEG-2 and audio encoded with MP2 (MPEG-1 Audio Layer II), a lossy compressed format common in broadcast and VCD/DVD production. During this conversion, FFmpeg discards the video stream entirely and decodes the compressed MP2 (or MP3/AAC) audio track into raw, uncompressed PCM samples. These samples are written as 16-bit signed big-endian PCM inside an AIF container — the format Apple defined for professional audio on Mac systems. Because MP2 is a lossy codec, the original audio quality cannot be perfectly recovered; what AIF preserves is the decoded audio at its current quality level, without any further generational loss. The result is a large, uncompressed file that is immediately ready for use in Logic Pro, GarageBand, Pro Tools, or any DAW that reads AIF.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg program, the open-source multimedia processing engine that this browser tool uses via WebAssembly (FFmpeg.wasm). All subsequent flags control how it reads, processes, and writes the media. |
-i input.mpg
|
Specifies the input file — an MPG container holding MPEG-1 or MPEG-2 video and typically MP2-encoded audio. FFmpeg reads both the video and audio streams from this file, though only the audio will be used in the output. |
-c:a pcm_s16be
|
Tells FFmpeg to encode the audio output as 16-bit signed big-endian PCM — the standard uncompressed audio codec for AIF files. This decodes the lossy MP2 source audio into raw PCM samples stored in the byte order that AIF requires, making the output immediately compatible with Logic Pro, GarageBand, and other macOS audio applications. |
output.aif
|
Defines the output filename and format. The '.aif' extension causes FFmpeg to write an Audio Interchange File Format container, automatically discarding the video stream from the source MPG since AIF supports only audio. The result is a standalone uncompressed audio file ready for use in any Mac-based audio workflow. |
Common Use Cases
- Extracting the audio commentary or narration from an MPEG-1 VCD recording to edit it in Logic Pro or GarageBand without re-encoding the audio a second time
- Pulling the stereo mix from a broadcast-captured MPG file for use as a music bed or sound effect in a professional macOS audio post-production workflow
- Archiving the audio track from old VCD home movies into a lossless AIF file so the decoded audio is preserved without any further compression artifacts
- Importing dialogue from a legacy MPEG-2 broadcast clip into a Mac-based DAW as a flat AIF file, where the session requires uncompressed audio tracks for accurate waveform editing
- Converting the MP2 audio from a DVD-ripped MPG file into AIF to use as a reference track when mastering, where lossless playback from disk is required
- Preparing audio from an MPG training or lecture recording for transcription software that requires uncompressed PCM input rather than compressed codecs
Frequently Asked Questions
No — converting from MPG to AIF does not improve audio quality. The source audio in an MPG file is encoded with a lossy codec, most commonly MP2, which permanently discards audio information during the original encoding. What this conversion does is decode that lossy audio into uncompressed PCM and store it in AIF without adding any further compression. The resulting AIF file is lossless from this point forward, but it cannot recover detail that was already lost in the MPG.
MPG files store audio as compressed MP2 data, which typically runs at 128–192 kbps. AIF stores audio as uncompressed 16-bit PCM at the full sample rate — for stereo audio at 44.1 kHz, that is roughly 1,411 kbps, or about seven to ten times larger than the compressed source. The file size increase reflects the absence of any compression, not an increase in audio quality. This is expected and normal for uncompressed formats like AIF.
The video stream is completely discarded. FFmpeg reads the MPG container, extracts only the audio track, and writes it to the AIF file. No video data is written to the output because AIF is a pure audio format with no support for video streams. If you need to keep the video, you would need to convert to a different output format.
Yes. The command uses '-c:a pcm_s16be' which produces 16-bit signed big-endian PCM. You can substitute 'pcm_s24be' for 24-bit or 'pcm_s32be' for 32-bit PCM by changing that flag: 'ffmpeg -i input.mpg -c:a pcm_s24be output.aif'. However, because the source audio was encoded as lossy MP2, choosing a higher bit depth will not recover lost audio detail — it will simply store the decoded samples in a wider container. For most use cases, 16-bit is sufficient.
FFmpeg itself processes one file at a time, but you can batch process using a shell loop. On macOS or Linux, run: 'for f in *.mpg; do ffmpeg -i "$f" -c:a pcm_s16be "${f%.mpg}.aif"; done'. On Windows Command Prompt, use: 'for %f in (*.mpg) do ffmpeg -i "%f" -c:a pcm_s16be "%~nf.aif"'. The in-browser tool on this page processes one file at a time, so the command-line approach is recommended for batch conversions.
No. MPG files have limited metadata support and typically do not carry chapter markers or subtitle tracks in a form FFmpeg would transfer to AIF anyway. More importantly, AIF does not support chapters or subtitles at all, so none of that data can be preserved in the output. Basic metadata such as ID3 tags embedded in the MPG audio stream may also be dropped, since AIF uses its own AIFF chunk-based metadata structure and not all fields map cleanly between formats.
Technical Notes
The MPG container wraps MPEG-1 or MPEG-2 video alongside audio that is almost always MP2 (MPEG-1 Audio Layer II) — a lossy codec standardized for broadcast and VCD/DVD use, operating at fixed bitrates typically between 128 and 384 kbps. AIF (Audio Interchange File Format) is Apple's counterpart to WAV, using a big-endian byte order in its PCM data, which reflects its origins on Motorola 68000-based Macintosh hardware. The default codec in this conversion is 'pcm_s16be' — signed 16-bit big-endian PCM — which is the standard AIF baseline and the format expected by most macOS audio applications. Because MPG does not support multiple audio tracks, transparency, subtitles, or chapters, there are no secondary streams to worry about losing. One practical limitation is sample rate: FFmpeg will preserve whatever sample rate the MP2 track used (commonly 44.1 kHz or 48 kHz), so no resampling occurs by default. If downstream software requires a specific sample rate, you can add '-ar 44100' or '-ar 48000' to the command explicitly. File sizes for AIF output will be substantially larger than the source MPG — plan for roughly 10 MB per minute per channel at 44.1 kHz 16-bit, compared to around 1–2 MB per minute for MP2 at 192 kbps.