Convert MPEG to OGA — Free Online Tool

Extract and convert audio from MPEG video files into OGA format using the Vorbis codec — stripping the MPEG-1/2 video stream entirely and producing a compact, open-format audio file ideal for web and archival use. This tool runs entirely in your browser via FFmpeg.wasm, so your files never leave your device.

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 MPEG-1 or MPEG-2 video alongside MP2 or MP3 audio. During this conversion, FFmpeg discards the video stream entirely — no re-encoding of video occurs because the output OGA container is audio-only. The audio stream is transcoded from its original MPEG audio encoding (MP2, MP3, or AAC) into Vorbis using the libvorbis encoder at a variable bitrate quality level of 4 (roughly equivalent to 128–160 kbps). The result is an Ogg-encapsulated Vorbis audio file, which is a fully open, patent-free format supported natively in Firefox and Chromium-based browsers.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg multimedia processing tool. In the browser version of this tool, this runs via FFmpeg.wasm compiled to WebAssembly — the same command works identically on a local FFmpeg desktop installation.
-i input.mpeg Specifies the input MPEG file, which may contain MPEG-1 or MPEG-2 video alongside MP2, MP3, or AAC audio. FFmpeg will demux both streams and make them available for processing.
-c:a libvorbis Instructs FFmpeg to encode the audio stream using the libvorbis encoder, producing Ogg Vorbis audio — an open, patent-free lossy codec that is the default and most widely supported audio format for the OGA container.
-q:a 4 Sets the Vorbis variable bitrate quality level to 4 on a scale of 0–10, which targets approximately 128–160 kbps and represents a good balance between file size and audio fidelity for typical MPEG audio source material.
output.oga Defines the output filename with the .oga extension, signaling to FFmpeg that the file should be written as an audio-only Ogg container. The video stream from the MPEG input is automatically discarded because OGA cannot carry video.

Common Use Cases

  • Extracting the audio soundtrack from an old MPEG-1 or MPEG-2 broadcast recording to archive it in an open, patent-free audio format
  • Pulling audio from legacy DVD-compatible MPEG files to create Vorbis tracks for embedding in an HTML5 web page without licensing concerns
  • Converting MPEG video lecture recordings into OGA audio files so students can listen on Ogg-compatible media players without needing a video player
  • Stripping audio from MPEG broadcast captures to create clean audio assets for further editing in open-source tools like Audacity, which handles OGA natively
  • Archiving the audio layer from MPEG news or documentary clips in a lossless-compatible Ogg container for long-term digital preservation workflows
  • Preparing audio tracks from MPEG home video files for use in Linux-based media environments where Ogg Vorbis is the preferred audio format

Frequently Asked Questions

Yes, there is a small quality loss because this is a lossy-to-lossy transcode — the original MPEG audio (typically MP2 encoded at around 192 kbps) is decoded and re-encoded as Vorbis. However, Vorbis at quality level 4 (the default used here) is generally considered transparent at normal listening levels. The degradation is minimal unless the source audio was already heavily compressed or encoded at a very low bitrate.
OGA is a strictly audio-only container based on the Ogg format — it has no provision for video streams. FFmpeg automatically drops the video track when the output container cannot carry it. If you need to preserve the video, you should convert to OGV (the Ogg video container) instead. OGA is the correct choice when you specifically want just the audio layer.
MP2 (MPEG-1 Audio Layer II) is an older lossy codec common in broadcast MPEG streams, while Vorbis is a more modern psychoacoustic codec that typically achieves better perceived quality at equivalent or lower bitrates. At quality level 4, Vorbis will generally sound equal to or better than a typical 192 kbps MP2 stream, and the resulting file size may be similar or slightly smaller depending on the audio content.
Adjust the -q:a value in the command. The scale runs from 0 (lowest quality, smallest file) to 10 (highest quality, largest file), with 4 as the default. For example, use '-q:a 6' for higher quality output at a larger file size, or '-q:a 2' for a smaller file with somewhat reduced quality. Unlike many encoders, Vorbis quality levels are not fixed bitrates — they target a variable bitrate range, so the actual bitrate will fluctuate based on audio complexity.
Yes. On Linux or macOS, you can use a shell loop such as: for f in *.mpeg; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.mpeg}.oga"; done. On Windows Command Prompt, use: for %f in (*.mpeg) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.oga". This is especially useful for processing large batches of legacy MPEG files that exceed the 1GB browser limit.
Basic metadata such as title, artist, and album tags will typically be carried over by FFmpeg during the conversion, since OGA via the Ogg container supports rich Vorbis Comment metadata tags. However, MPEG files often carry very little embedded metadata to begin with, especially older broadcast recordings. Subtitles and chapter markers from the MPEG source are not preserved, as OGA does not support subtitles and any chapter data in a plain MPEG stream is rarely structured in a way FFmpeg can map across.

Technical Notes

MPEG files using MPEG-2 video and MP2 audio are a common legacy broadcast format, and the audio layer is often encoded at a fixed 192 kbps MP2 bitrate per the broadcast specification. When FFmpeg transcodes this to Vorbis for OGA output, it fully decodes the MP2 stream before re-encoding, meaning any pre-existing compression artifacts from the MP2 stage are baked into the final Vorbis encode — this is the inherent cost of any generation loss in lossy-to-lossy conversion. The OGA container (Ogg Audio) is distinct from OGG in that it specifically signals an audio-only stream, making it more semantically correct for pure audio use cases. Vorbis is a fully open, patent-free codec, making OGA files safe for use in open-source and Linux-centric ecosystems without licensing concerns. Note that OGA does not support multiple audio tracks, subtitles, or embedded cover art via standard Vorbis Comment fields alone, so any such elements in the source MPEG will be silently dropped. If lossless output is needed, the libvorbis codec can be swapped for flac in the command (using -c:a flac and removing -q:a), though this will produce significantly larger files.

Related Tools