Convert MPEG to OGG — Free Online Tool
Convert MPEG video files to OGG audio using the open Vorbis codec, extracting and re-encoding the MP2 or MP3 audio track into a royalty-free, streaming-friendly format. This tool runs entirely in your browser via WebAssembly — no uploads, no servers, no cost.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MPEG 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
MPEG files typically carry MP2 or MP3 audio encoded alongside MPEG-1 or MPEG-2 video streams. During this conversion, FFmpeg discards the video stream entirely and transcodes only the audio into a new OGG container using the Vorbis codec (libvorbis). This is a lossy-to-lossy transcode — the original MP2 or MP3 audio is decoded to raw PCM first, then re-encoded as Vorbis at quality level 4 (a variable bitrate roughly equivalent to 128–160 kbps). The result is a compact, open-format audio file ideal for web and Linux environments, but without any of the original video content.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool, which handles all demuxing, decoding, encoding, and remuxing. In the browser version of this tool, FFmpeg runs as a WebAssembly binary (FFmpeg.wasm), producing identical output to the desktop version. |
-i input.mpeg
|
Specifies the input MPEG file. FFmpeg reads the MPEG-1 or MPEG-2 container, identifies the video stream (mpeg1video or mpeg2video) and the audio stream (typically MP2), and makes both available for processing. |
-c:a libvorbis
|
Selects the Vorbis encoder (libvorbis) for the audio stream, transcoding the MP2 or MP3 audio from the MPEG source into the open Vorbis format that the OGG container is designed to carry. |
-q:a 4
|
Sets the Vorbis variable bitrate quality level to 4 on a scale of 0–10, targeting approximately 128–160 kbps. This is a practical default for general-purpose content extracted from MPEG files, balancing file size against perceptual audio quality. |
output.ogg
|
Defines the output filename and tells FFmpeg to write an OGG container. The video stream from the MPEG input is implicitly dropped because no video codec is specified and OGG in this configuration carries only the Vorbis audio stream. |
Common Use Cases
- Extracting the audio commentary or narration from an archived MPEG broadcast recording for use in a podcast or radio-style production that requires open formats
- Converting legacy MPEG video from DVD-era captures into OGG Vorbis for use in open-source game engines like Godot, which natively support OGG for audio assets
- Stripping the audio from MPEG training videos or lectures to create OGG audio files playable in Linux media players without proprietary codec dependencies
- Archiving the audio track from MPEG-1 or MPEG-2 home video recordings in OGG format for long-term storage using an open, patent-free container
- Preparing audio from MPEG broadcast footage for use on platforms or CMS systems that require or prefer open-format audio files over proprietary MP2 streams
- Extracting music or soundtracks embedded in MPEG video files to create OGG audio tracks for use in HTML5 web projects that rely on open codec support
Frequently Asked Questions
Yes, this is a lossy-to-lossy transcode, which means a generation of quality loss is introduced. The original MPEG file already uses lossy MP2 or MP3 audio compression, and re-encoding that to Vorbis means decoding to raw audio first and then compressing again with a new codec. At quality level 4, Vorbis sounds excellent for most content, but if preserving maximum fidelity is critical, you should work from an uncompressed source rather than an already-compressed MPEG file.
OGG is primarily an audio container in common usage, and this tool is configured to extract only the audio track from your MPEG file. The MPEG-1 or MPEG-2 video stream is deliberately discarded during conversion because OGG Vorbis is an audio-only format. If you need to retain the video, you should convert to a format like MKV or MP4 instead.
Yes, FFmpeg fully supports decoding MP2 audio from MPEG streams and re-encoding it as Vorbis. MP2 (MPEG-1 Audio Layer II) is commonly found in broadcast MPEG-2 content such as DVB or DVD-Video sources, and libvorbis handles the transcode reliably. The main consideration is that MP2 often runs at lower bitrates like 192 or 224 kbps, so the Vorbis output at quality 4 will be comparable or slightly better in perceptual quality for music and speech.
The quality is controlled by the -q:a flag, which accepts values from 0 (lowest, ~64 kbps) to 10 (highest, ~500 kbps). The default used here is 4, which targets approximately 128–160 kbps and is a good balance for most content. For speech-only MPEG recordings, -q:a 2 or 3 is usually sufficient, while high-quality music from MPEG sources benefits from -q:a 6 or higher. For example: ffmpeg -i input.mpeg -c:a libvorbis -q:a 6 output.ogg
Yes, OGG supports multiple codecs including Opus (libopus) and FLAC. Opus is particularly efficient at lower bitrates and is excellent for speech from MPEG recordings, while FLAC inside OGG gives you lossless audio, avoiding the quality loss of a Vorbis transcode. To use Opus, replace -c:a libvorbis -q:a 4 with -c:a libopus -b:a 128k; for lossless FLAC, use -c:a flac instead.
Yes, on the command line you can use a shell loop to process multiple files. On Linux or macOS, run: for f in *.mpeg; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.mpeg}.ogg"; done. On Windows Command Prompt, use: for %f in (*.mpeg) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.ogg". The browser-based tool processes one file at a time, so the FFmpeg command is the best approach for bulk conversions or files over 1GB.
Technical Notes
MPEG containers (.mpeg, .mpg) were designed around MPEG-1 and MPEG-2 standards and typically embed MP2 audio, though some MPEG-2 files contain MP3 or even AAC audio tracks. FFmpeg auto-detects the audio codec in the input and decodes it correctly regardless of variant. The OGG container is fully open and patent-free, managed by Xiph.Org, making it a principled choice for open-source projects and Linux-based workflows. Vorbis uses variable bitrate (VBR) encoding controlled by -q:a rather than a fixed bitrate, which generally achieves better quality-per-byte than the fixed-bitrate MP2 streams found in broadcast MPEG. One important limitation: MPEG files do not support embedded subtitle or chapter metadata, and while OGG does support chapter markers (via metadata tags), this conversion will not produce any chapters since none exist in the source. Standard ID3-style metadata such as title or artist embedded in some MPEG streams may not transfer automatically and could require manual tagging of the OGG output. The output file size will generally be smaller than the MPEG source because video is discarded and Vorbis is more efficient than MP2 for audio-only content at equivalent perceptual quality.