Extract Audio from MPG to WMA — Free Online Tool
Extract audio from MPG video files and convert it to WMA format, transcoding the source MP2 or AAC audio stream into Windows Media Audio (wmav2) codec. Ideal for preserving MPEG broadcast or DVD audio content in a format compatible with Windows Media Player and Microsoft ecosystem applications.
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 audio encoded as MP2 (MPEG-1 Audio Layer II), though some MPG files use AAC or MP3. During this conversion, FFmpeg strips the MPEG-1 or MPEG-2 video stream entirely and re-encodes the audio track into Windows Media Audio version 2 (wmav2), wrapping it in a WMA container. This is a full transcode — not a remux — because MP2 and wmav2 are fundamentally different codecs with different compression algorithms, so the audio is decoded from its source format and re-encoded at the target bitrate. The default output bitrate is 128k, which is standard for WMA streaming applications and closely matches the typical 128–192k bitrate found in MPG broadcast audio.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg command-line tool, which is also running as FFmpeg.wasm (compiled to WebAssembly) inside your browser to perform this conversion without uploading your file to any server. |
-i input.mpg
|
Specifies the input MPG file — an MPEG-1 or MPEG-2 video container that typically holds mpeg2video and MP2 audio streams originating from sources like VCD, DVD, or broadcast capture. |
-vn
|
Disables video output entirely, telling FFmpeg to ignore the mpeg1video or mpeg2video stream in the MPG file. This is essential because WMA is a pure audio container and cannot hold video data. |
-c:a wmav2
|
Selects the wmav2 encoder to produce Windows Media Audio version 2 output — the standard and higher-quality WMA codec, compatible with Windows Media Player 9 and all later Microsoft media software. |
-b:a 128k
|
Sets the WMA audio output bitrate to 128 kilobits per second, which is the standard default for WMA streaming and balances file size against audio quality for typical MPG broadcast or DVD-sourced audio content. |
output.wma
|
Defines the output filename with the .wma extension, signaling FFmpeg to write a Windows Media Audio container file holding the re-encoded wmav2 audio stream extracted from the source MPG. |
Common Use Cases
- Extracting the audio commentary or soundtrack from a VCD or DVD-sourced MPG file to archive it as a WMA file for playback in Windows Media Player
- Converting MPG broadcast recordings from a capture card or DVR into WMA files for use in Windows-based digital signage or media kiosk software
- Pulling the MP2 audio from an MPEG-2 broadcast clip and delivering it as WMA to a client whose media library system only accepts Windows Media formats
- Stripping audio from legacy MPG training or instructional videos to create standalone WMA audio files for distribution via a Windows-based LMS platform
- Extracting dialogue or narration from MPEG-1 VCD-format videos and saving as WMA for use in Windows Movie Maker or older Microsoft editing workflows
- Converting MPG news broadcast segments into WMA audio for archival in a Microsoft SharePoint or OneDrive media library that indexes WMA metadata tags
Frequently Asked Questions
Yes, some quality loss is unavoidable because this conversion involves two stages of lossy compression. The original audio in the MPG file — typically MP2 at 192k or similar — must be fully decoded and then re-encoded into wmav2. Each lossy encode discards some audio information, so the resulting WMA file will not be identical to the source. At 128k wmav2, the output is generally considered acceptable for speech and broadcast content, though critical listeners may notice degradation compared to the original MP2 stream.
WMA is a proprietary Microsoft container format that is specifically designed to hold Windows Media Audio codec data (wmav1 or wmav2). It does not support raw MP2 streams as a valid codec inside the container, so a stream copy with -c:a copy is not possible for this format pair. FFmpeg must decode the MP2 audio and re-encode it into wmav2, which is the only audio codec natively supported by the WMA format.
You can adjust the -b:a flag to control the output WMA bitrate. For higher quality, replace 128k with 192k, 256k, or 320k — for example: ffmpeg -i input.mpg -vn -c:a wmav2 -b:a 256k output.wma. For smaller file sizes suitable for voice or spoken-word content, you can use 64k or 96k. Keep in mind that because the source MPG audio is typically around 128–192k MP2, using a WMA bitrate significantly higher than the source will not recover lost quality and will only increase file size.
MPG files have very limited metadata support by the MPEG standard, so there is typically little to no tag data embedded in the source file to carry over. WMA, by contrast, supports rich metadata tags including title, artist, album, and year. FFmpeg will attempt to map any existing metadata from the MPG container to WMA fields, but in practice you will likely need to add or edit WMA tags manually after conversion using a tool like Mp3tag or Windows Media Player.
Yes. On Linux or macOS you can use a shell loop: for f in *.mpg; do ffmpeg -i "$f" -vn -c:a wmav2 -b:a 128k "${f%.mpg}.wma"; done. On Windows Command Prompt, use: for %f in (*.mpg) do ffmpeg -i "%f" -vn -c:a wmav2 -b:a 128k "%~nf.wma". This processes every MPG file in the current directory and outputs a matching WMA file, which is useful when you have large collections exceeding the 1GB browser limit.
wmav2 is the default and preferred choice for almost all use cases — it is a more refined codec that produces better audio quality at the same bitrate compared to the older wmav1. wmav1 was used in early Windows Media Player versions and is rarely needed today. You would only specify -c:a wmav1 if you need to support an extremely old Windows Media Player version (pre-WMP 7) or a legacy embedded device that does not support wmav2 decoding.
Technical Notes
MPG files using the MPEG-1 or MPEG-2 container standard most commonly carry MP2 (MPEG-1 Audio Layer II) audio, which is a relatively low-complexity lossy codec historically used in VCD, broadcast television, and DVD video. When extracting to WMA, FFmpeg decodes this MP2 stream and re-encodes it using the wmav2 codec — a Microsoft proprietary algorithm optimized for streaming at lower bitrates. The WMA format does not support multiple audio tracks, so if the source MPG contains multiple audio streams (e.g., multiple language tracks), only the first audio stream will be extracted by default; use -map 0:a:1 to select an alternate track. WMA files produced by ffmpeg are compatible with Windows Media Player 9 and later, Xbox, and most Windows-native applications, but may require a codec pack for playback on macOS or Linux. The -vn flag is critical here — without it, FFmpeg would attempt to encode video into the WMA container, which is audio-only and would cause the command to fail. File size for the WMA output will be determined almost entirely by the -b:a bitrate and the audio duration, since all video data is discarded.