Convert MPG to OGA — Free Online Tool
Convert MPG video files to OGA audio by extracting and re-encoding the MPEG audio stream into Ogg Vorbis format. This is ideal for pulling broadcast or DVD-sourced audio out of MPG files into a lightweight, open-standard audio container without retaining any video data.
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 MPEG-1 or MPEG-2 video alongside MP2 or MP3 audio. Since OGA is a pure audio container based on the Ogg format, the video stream is completely discarded during this conversion — it is not remuxed or re-encoded, just dropped. The MP2 or MP3 audio from the MPG is then decoded and re-encoded as Vorbis audio using the libvorbis encoder, which is the native codec for OGA files. This means the audio undergoes a lossy-to-lossy transcode: the original MP2/MP3 audio is decoded to PCM and then compressed again using Vorbis. The result is a compact OGA file containing only the audio track in an open, patent-free format.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool, which handles all media decoding, stream selection, and encoding in this conversion pipeline. |
-i input.mpg
|
Specifies the input MPG file. FFmpeg reads and demuxes the MPEG container, identifying the video stream (MPEG-1 or MPEG-2) and the audio stream (typically MP2 or MP3) for processing. |
-c:a libvorbis
|
Selects the libvorbis encoder to compress the audio output into Vorbis format, which is the standard and most compatible audio codec for OGA files. The MP2 or MP3 audio from the MPG is decoded to PCM and then re-encoded using this encoder. |
-q:a 4
|
Sets the Vorbis variable bitrate quality to level 4 on a 0–10 scale, targeting approximately 128 kbps. This default balances file size and audio fidelity well for typical broadcast or VCD-sourced MPG audio content. |
output.oga
|
Defines the output file with the .oga extension, which tells FFmpeg to wrap the encoded Vorbis audio in an Ogg container. The video stream from the MPG is automatically dropped since OGA supports only audio. |
Common Use Cases
- Extracting the audio commentary or narration from a broadcast recording saved as MPG, for editing in a podcast or voiceover project
- Pulling the audio from a VCD or DVD-ripped MPG file to create a standalone music or soundtrack file in an open format
- Converting MPG lecture or training recordings into OGA audio for distribution on platforms that accept Ogg Vorbis without requiring a video player
- Archiving the audio content of legacy MPEG broadcast files as OGA when video content is no longer needed and storage space is a concern
- Preparing audio from MPG news or documentary footage for use in open-source or Linux-based media workflows where Ogg Vorbis is the preferred format
- Stripping video from MPG files captured from older camcorders or set-top recorders to share just the audio via web players that support OGA
Frequently Asked Questions
Yes, some quality loss is expected because this is a lossy-to-lossy transcode. The original MPG file contains MP2 or MP3 audio, which is already compressed with some quality loss. During conversion, that audio is decoded to raw PCM and then re-encoded with Vorbis compression. Each generation of lossy encoding introduces additional artifacts. The default quality setting of -q:a 4 produces very listenable Vorbis audio, but if the original MP2 audio was already at a low bitrate, the OGA output may reflect those pre-existing limitations.
MPG files store very limited metadata, and most of it is format-specific to the MPEG container rather than standard tagging fields. OGA via the Ogg container supports rich Vorbis comment metadata (title, artist, album, etc.), but FFmpeg will only carry over metadata that exists in the source MPG and maps to Ogg tags. In practice, you will likely need to add or edit metadata manually after conversion using a tag editor, as MPG files from broadcast or VCD sources rarely carry structured title or artist tags.
The .oga extension is the officially recommended file extension for audio-only Ogg files, as defined by the Xiph.Org Foundation. The older .ogg extension was historically used for any Ogg container file, but it now specifically implies Vorbis audio in common usage. Both extensions use the same container format, so an .oga file can typically be renamed to .ogg without any issues if a player or platform requires it.
Yes, OGA supports FLAC as a lossless audio codec. To use it, modify the FFmpeg command by replacing '-c:a libvorbis -q:a 4' with '-c:a flac'. This will decode the MP2 or MP3 audio from the MPG file and re-encode it as lossless FLAC inside the OGA container. Keep in mind that because the original MPG audio is already lossy, using FLAC will not recover the quality lost in the original compression — it will only prevent any further degradation from the Vorbis encoding step, at the cost of a significantly larger file.
The -q:a flag controls Vorbis quality on a scale from 0 (lowest) to 10 (highest). The default in this command is 4, which targets roughly 128 kbps and is suitable for most speech or music content from broadcast MPG sources. To improve quality, increase the value — for example, '-q:a 6' targets around 192 kbps and is a good choice for music. To reduce file size at the cost of quality, lower the value, such as '-q:a 2' for approximately 96 kbps. Replace the '4' in the command with your chosen value before running it.
The single-file command shown here processes one file at a time, but you can adapt it for batch processing in a shell script. On Linux or macOS, you can run: for f in *.mpg; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.mpg}.oga"; done. On Windows Command Prompt, use: for %f in (*.mpg) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.oga". This processes each MPG file in the current directory and outputs a matching OGA file with the same base name.
Technical Notes
MPG files based on the MPEG-1 and MPEG-2 standards most commonly carry MP2 (MPEG-1 Audio Layer II) audio, though some MPG files — particularly those ripped from DVD or created by certain encoders — may contain MP3 or even AAC audio. FFmpeg handles all of these source audio types transparently when targeting OGA output. The Vorbis codec used in OGA is fully open and patent-free, making OGA files well-suited for open-source and Linux ecosystems. OGA does not support multiple audio tracks, so if the source MPG contained secondary audio channels (rare but possible in broadcast MPEG-2), only the first audio track will be included in the output. Chapters are supported by the Ogg container specification, but since MPG files do not carry chapter data, none will be present in the output OGA. The video stream from the MPG is completely discarded without re-encoding, so conversion speed depends almost entirely on how fast the audio can be Vorbis-encoded rather than on the complexity of decoding MPEG video. File sizes for OGA output at the default -q:a 4 setting are typically 60–80% smaller than the original MPG, since the video data is eliminated and Vorbis is generally more efficient than MP2 at equivalent perceptual quality.