Extract Audio from MPG to MP3 — Free Online Tool

Extract the audio track from an MPG video file and save it as an MP3, re-encoding the MPEG Audio Layer II (MP2) stream found in most MPG files into the universally compatible MP3 format using the LAME encoder. Ideal for pulling audio from VCD rips, broadcast recordings, or legacy DVD-compatible video files.

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 — whether MPEG-1 or MPEG-2 based — typically carry audio encoded in MP2 (MPEG Audio Layer II), an older codec closely related to but distinct from MP3. This tool discards the video stream entirely and re-encodes the MP2 audio into MP3 using the libmp3lame encoder. Because MP2 and MP3 are both lossy formats, this is a lossy-to-lossy transcode: the audio is decoded from MP2 and re-compressed as MP3 at 128k bitrate by default. The result is a standalone MP3 file compatible with virtually every audio player, smartphone, streaming platform, and media application — unlike raw MP2, which has very limited modern playback support.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg tool. In the browser-based version of this tool, FFmpeg runs locally via WebAssembly (FFmpeg.wasm) — no data leaves your device.
-i input.mpg Specifies the input MPG file. FFmpeg will automatically detect whether this is an MPEG-1 or MPEG-2 stream and identify the audio codec present (typically MP2 in standard MPG files).
-vn Disables video output entirely, telling FFmpeg to ignore the MPEG-1 or MPEG-2 video stream in the MPG file. This is essential for audio extraction — without it, FFmpeg would try to include video in the output, which an MP3 file cannot contain.
-c:a libmp3lame Re-encodes the audio using the LAME MP3 encoder. Since MPG files carry MP2 audio (a distinct bitstream format from MP3), a direct stream copy is not possible — the audio must be decoded and re-encoded as true MPEG Layer III data to produce a valid MP3 file.
-b:a 128k Sets the MP3 output bitrate to 128 kilobits per second, a widely compatible constant bitrate suitable for speech and general listening. This can be raised to 192k, 256k, or 320k in the desktop command for better audio fidelity from higher-quality broadcast MPG sources.
output.mp3 The name of the resulting MP3 file. The .mp3 extension signals FFmpeg to use the MP3 muxer, producing a standalone audio file playable on virtually any device, app, or platform without the video payload of the original MPG.

Common Use Cases

  • Extracting the audio commentary or narration from a VCD or MPEG-1 video rip for archiving as a standalone audio file
  • Pulling the soundtrack from a broadcast-recorded MPG file to listen to on a phone or music player that doesn't support MP2 audio
  • Converting the audio from a legacy DVD authoring workflow MPG file into MP3 for use in a podcast or audio edit
  • Extracting interview or speech audio from MPEG-2 broadcast captures for transcription or captioning workflows
  • Separating background music from an MPG video produced by older camcorders or DVD recorders for reuse in other projects
  • Getting an MP3 copy of a training or instructional video in MPG format so it can be listened to offline without the video

Frequently Asked Questions

Yes, some quality loss is unavoidable. MPG files almost always use MP2 audio, which is already a lossy format. When this tool re-encodes that MP2 audio into MP3, it decodes and re-compresses the signal, introducing a second generation of lossy compression artifacts. The result is generally acceptable for speech, podcasts, and casual listening, but audiophiles working with high-quality broadcast MPG sources may notice a slight degradation. If preserving the original MP2 audio without re-encoding is important, you would need to keep the MP2 stream directly rather than converting to MP3.
MP2 (MPEG Audio Layer II) and MP3 (MPEG Audio Layer III) are technically related but are distinct codecs with different bitstream formats — you cannot simply rename or repackage MP2 data as MP3. An MP3 file must contain Layer III encoded audio. Because of this, the audio must be fully decoded and re-encoded using the LAME encoder, which is what the -c:a libmp3lame flag does in the FFmpeg command.
Replace the value after -b:a in the command. For example, to get a higher-quality 320k MP3, use: ffmpeg -i input.mpg -vn -c:a libmp3lame -b:a 320k output.mp3. Common options are 128k (default, good for speech), 192k (better for music), 256k, and 320k (highest quality). Going below 128k is generally not recommended as MP2-to-MP3 transcoding at very low bitrates can produce noticeably degraded audio.
MPG files based on the MPEG-1/2 standard have very limited metadata support and do not carry embedded ID3 tags the way modern container formats do. As a result, the output MP3 will typically not have artist, title, or album metadata populated. You can add ID3 tags manually after conversion using tools like Mp3tag, or by passing additional FFmpeg metadata flags such as -metadata title='My Track' in the command.
Significantly smaller, because the video stream — which accounts for the vast majority of an MPG file's size — is completely removed. An MPG file that is several hundred megabytes of video plus MP2 audio might produce an MP3 that is only a few megabytes, depending on the audio duration and bitrate. At 128k bitrate, an MP3 uses roughly 1 MB per minute of audio, so a 90-minute MPG might yield a 90–100 MB MP3 file regardless of how large the original video was.
Yes. On Linux or macOS you can use a shell loop: for f in *.mpg; do ffmpeg -i "$f" -vn -c:a libmp3lame -b:a 128k "${f%.mpg}.mp3"; done. On Windows Command Prompt, use: for %f in (*.mpg) do ffmpeg -i "%f" -vn -c:a libmp3lame -b:a 128k "%~nf.mp3". This browser-based tool processes one file at a time, so for bulk conversions of many large MPG files the desktop FFmpeg command is the more practical approach.

Technical Notes

MPG is a broad term covering both MPEG-1 (.mpg used for VCD) and MPEG-2 (.mpg used for DVD and broadcast) containers. Both variants predominantly use MP2 audio, though some MPG files — particularly those from software encoders or broadcast capture cards — may contain AAC or even MP3 audio instead. This tool handles all these cases by decoding whatever audio stream is present and re-encoding it as MP3 via libmp3lame. The -vn flag is critical: without it, FFmpeg would attempt to include the video stream in the output, which MP3 cannot contain. The default output bitrate of 128k CBR (constant bitrate) is chosen for broad compatibility, particularly with older hardware players and car stereos. Because both the input MP2 and output MP3 formats are lossy, there is no way to recover detail that was lost during the original MPG encoding — the audio fidelity ceiling is set by the source. MPG files do not support chapters, subtitle tracks, or multiple audio streams in the way modern containers like MKV or MP4 do, so none of those elements are at risk of being silently dropped during this extraction.

Related Tools