Extract Audio from MPEG to OGG — Free Online Tool

Extract audio from MPEG video files and convert it to OGG format using the Vorbis codec — ideal for replacing legacy MP2 broadcast audio with a modern, open-source format that delivers better quality at lower bitrates. The conversion re-encodes the audio stream while discarding the MPEG video entirely.

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

MPEG files typically carry MP2 audio (the standard for broadcast and DVD-era content), which is then re-encoded into Vorbis and wrapped in an OGG container. This is a full audio transcode — not a remux — because MP2 and Vorbis are entirely different codecs with no shared encoding path. The video stream from the MPEG file is explicitly discarded using the -vn flag, so only the audio is processed. Vorbis uses variable bitrate (VBR) quality scaling rather than a fixed bitrate, so quality level 4 targets roughly 128 kbps and produces a smaller file than the typical 192 kbps MP2 stream found in MPEG sources while maintaining comparable or better perceptual quality.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg tool, which handles the decoding of the MPEG container and its MP2 audio stream, the Vorbis re-encoding, and writing the final OGG file.
-i input.mpeg Specifies the input MPEG file, which may contain MPEG-1 or MPEG-2 video alongside MP2, MP3, or AAC audio depending on the source.
-vn Disables video output entirely, ensuring no MPEG-1 or MPEG-2 video stream is included in the output — only the audio track is processed and written to the OGG file.
-c:a libvorbis Selects the libvorbis encoder to re-encode the audio stream into Vorbis format, which is required because OGG cannot store the MP2 audio codec native to most MPEG files.
-q:a 4 Sets the Vorbis variable bitrate quality to level 4 on a 0–10 scale, targeting approximately 128 kbps average output — a balanced default that produces noticeably smaller files than a typical 192 kbps MP2 source while retaining good perceptual quality.
output.ogg Defines the output filename and tells FFmpeg to use the OGG container format, which wraps the newly encoded Vorbis audio stream in an open, royalty-free format suitable for web and open-source media workflows.

Common Use Cases

  • Archiving audio from legacy broadcast or DVD-ripped MPEG recordings while converting from proprietary MP2 encoding to the open Vorbis format
  • Extracting spoken-word or music audio from old MPEG-1 or MPEG-2 video files to use in open-source media players and platforms that favor OGG/Vorbis
  • Preparing audio from MPEG broadcast captures for use in Linux-based workflows or applications where OGG is the preferred native audio format
  • Stripping and re-encoding audio from MPEG video files before importing into open-source video editors like Kdenlive or OpenShot that handle OGG natively
  • Converting MP2-encoded audio extracted from MPEG streams to Vorbis for embedding in open-format web projects or HTML5 audio players
  • Reducing the file size of large MPEG broadcast recordings by keeping only the audio track in an efficiently compressed Vorbis container

Frequently Asked Questions

Yes, some generation loss occurs because this conversion re-encodes from one lossy format (MP2) to another (Vorbis). However, at quality level 4, Vorbis is generally considered to produce better-sounding output than MP2 at equivalent or lower bitrates, so the perceptual quality of the result is often on par with or slightly better than the source despite the transcode. If preserving the original MP2 audio without re-encoding is a priority, OGG is not the right target format — OGG does not support MP2 as a codec.
Vorbis uses variable bitrate (VBR) encoding controlled by a quality scale rather than a fixed target bitrate. Quality 4 roughly corresponds to 128 kbps on average, but the actual bitrate fluctuates based on the complexity of the audio content. This is fundamentally different from the fixed 192 kbps CBR typically used for MP2 in MPEG files, and it is one of the reasons Vorbis can achieve comparable perceptual quality at a smaller file size.
Change the value after -q:a in the command to any integer between 0 and 10, where higher numbers produce better quality and larger files. For example, replacing '-q:a 4' with '-q:a 6' targets roughly 192 kbps and is a good choice when your source MPEG has high-quality MP2 audio you want to preserve as faithfully as possible through the transcode. Use '-q:a 2' or '-q:a 3' if you want a smaller OGG file and can tolerate slightly lower fidelity.
FFmpeg will attempt to copy any metadata tags present in the MPEG source — such as title or artist fields — into the OGG container's Vorbis Comment tag format. However, MPEG files (especially broadcast captures) often contain minimal or no embedded metadata, so the OGG output may arrive with empty tags. OGG/Vorbis has robust support for metadata tags, so you can add or edit them after conversion using tools like VorbisComment or a tag editor like MusicBrainz Picard.
Yes. On Linux or macOS, you can run a shell loop such as: for f in *.mpeg; do ffmpeg -i "$f" -vn -c:a libvorbis -q:a 4 "${f%.mpeg}.ogg"; done. On Windows Command Prompt, use: for %f in (*.mpeg) do ffmpeg -i "%f" -vn -c:a libvorbis -q:a 4 "%~nf.ogg". The browser-based tool processes files one at a time, so the FFmpeg command is especially useful for batch processing large collections locally.
The OGG container only supports Vorbis, Opus, and FLAC audio codecs — it cannot store MP2, which is the native audio codec used in most MPEG-1 and MPEG-2 files. Because of this codec incompatibility, a full re-encode from MP2 to Vorbis is unavoidable. There is no stream copy option for this particular source-to-destination format pair.

Technical Notes

MPEG-1 and MPEG-2 files commonly carry MP2 (MPEG-1 Audio Layer II) audio at 192 kbps or 224 kbps, a codec associated with broadcast television, VCD, and DVD production. OGG does not support MP2 as a valid stream, so this conversion always involves a full decode-and-reencode cycle. The Vorbis encoder used here (libvorbis) is the reference implementation and produces high-quality output, but as with any lossy-to-lossy transcode, artifacts from the MP2 encoding stage are 'baked in' before Vorbis compression adds its own. The resulting OGG file supports multiple audio tracks and chapter markers in the container spec, though this tool extracts only the primary audio track from the MPEG source. MPEG files do not support embedded subtitles or chapters in a way that transfers to OGG, so no subtitle or chapter data is carried over. File sizes will typically be smaller than the source MPEG due to discarding the video stream and the efficiency of Vorbis VBR encoding, though the exact reduction depends heavily on the duration and video bitrate of the original file.

Related Tools