Convert AVI to OGA — Free Online Tool
Extract and convert the audio track from an AVI file into an OGA container using the Vorbis codec — a free, open-source format ideal for archiving or streaming audio from legacy video files. This tool strips the video entirely and encodes the audio as a high-quality Ogg Vorbis stream, all processed locally in your browser with no uploads required.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your AVI 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
AVI files typically carry audio encoded as MP3 (via LAME) or occasionally AAC or PCM — none of which are natively stored in an OGA container. During this conversion, FFmpeg discards the video stream entirely and re-encodes the audio track using the libvorbis encoder, wrapping the result in an Ogg container with the .oga extension. Because the audio codec must change (from MP3 or another format to Vorbis), this is a full transcode of the audio — not a remux. The quality is controlled by Vorbis's variable bitrate quality scale (-q:a), where the default value of 4 targets roughly 128–160 kbps and represents a good balance between file size and fidelity. The output file contains only the audio stream, making it significantly smaller than the source AVI.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg program — the underlying multimedia processing engine that handles all decoding, encoding, and stream manipulation. In the browser-based tool, this runs as a WebAssembly binary (FFmpeg.wasm) with no server involvement. |
-i input.avi
|
Specifies the input file — in this case, an AVI file. FFmpeg reads and demuxes the AVI container, separating its interleaved video and audio streams so each can be handled independently. |
-c:a libvorbis
|
Sets the audio codec to libvorbis, which encodes the audio stream using the open-source Vorbis algorithm. Since OGA cannot store the original MP3 or PCM audio from the AVI, a full re-encode to Vorbis is required — this is not a simple remux. |
-q:a 4
|
Sets the Vorbis variable bitrate quality level to 4 on a 0–10 scale, targeting approximately 128–160 kbps. This is the recommended default for general-purpose audio — higher values produce larger files with greater fidelity, while lower values reduce file size at the cost of quality. |
output.oga
|
Defines the output filename with the .oga extension, which instructs FFmpeg to wrap the encoded Vorbis stream in an Ogg container signaling audio-only content. The absence of a video output codec flag means FFmpeg automatically drops the video stream from the AVI, producing a pure audio file. |
Common Use Cases
- Extract a music performance or concert recording from an old AVI video file and save it as a portable, open-format audio file for playback in media players that support Ogg Vorbis.
- Strip the audio commentary track from a legacy AVI screencast or tutorial video to create a standalone audio guide compatible with Ogg-supporting podcast players.
- Archive the audio portion of AVI home video recordings in a smaller, open-standard format without relying on proprietary codecs like MP3, which carries historical licensing concerns.
- Prepare audio assets from AVI source footage for use in open-source game engines or web projects that prefer or require Ogg-based audio formats like OGA.
- Extract interview or dialogue audio from an AVI broadcast clip for transcription or editing in audio software that accepts Ogg Vorbis input.
- Convert a large library of old AVI files — such as ripped DVDs or archived news footage — to OGA to save storage space by discarding the video and compressing only the audio.
Frequently Asked Questions
Yes, some generation loss is likely unless the original AVI contains uncompressed PCM audio. Most AVI files store audio as MP3 or another lossy format, so converting to Vorbis means decoding one lossy format and re-encoding to another — a process called generation loss. At the default -q:a 4 setting, the Vorbis output is high quality and the loss is rarely perceptible, but if audio fidelity is critical, consider using the FLAC codec option within the OGA container, which is lossless.
The video stream is completely discarded. OGA is a strictly audio-only container based on the Ogg format, so it has no mechanism to store video data. FFmpeg handles this automatically — it selects only the audio stream from the AVI and encodes it to Vorbis, ignoring all video frames. The resulting OGA file will be a fraction of the size of the original AVI.
By default, FFmpeg selects the first audio stream it finds in the AVI file. OGA does not support multiple audio tracks, so only one track will be included in the output. If your AVI has multiple audio tracks (such as commentary and original audio on a DVD rip), and you need a specific one, you would need to add a stream selector to the FFmpeg command, such as -map 0:a:1 to pick the second audio track.
Adjust the -q:a value in the command. For Vorbis, -q:a accepts values from 0 to 10, where 0 is the lowest quality (around 64 kbps) and 10 is the highest (around 500 kbps). The default of 4 targets approximately 128–160 kbps. For near-transparent quality, -q:a 6 or higher is recommended. Alternatively, replace libvorbis with flac in the -c:a flag for lossless audio, which ignores the -q:a parameter entirely.
Basic metadata such as title, artist, or comment fields embedded in the AVI may be carried over by FFmpeg into the OGA file's Vorbis comment tags, but AVI's metadata support is minimal and inconsistently implemented. OGA and the Ogg container have robust support for Vorbis comment metadata, so any valid tags present in the source will generally transfer. However, AVI-specific metadata like chapter markers or embedded subtitles are not supported by either format in this pipeline.
Yes. On Linux or macOS, you can run a simple shell loop: for f in *.avi; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.avi}.oga"; done. On Windows Command Prompt, use: for %f in (*.avi) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.oga". This applies the same Vorbis encoding settings to every AVI in the current directory. Batch processing on the desktop is especially practical for large AVI libraries that exceed the 1GB browser limit.
Technical Notes
AVI is a legacy container originally designed around the RIFF structure and interleaved audio/video chunks, and its audio streams are most commonly MP3 (MPEG Layer 3) or PCM, though AAC and AC-3 variants exist in some AVI files. The libvorbis encoder used in this conversion implements the original Xiph.Org Vorbis specification and produces a variable bitrate stream governed by a quality scale rather than a fixed bitrate — this is why the -q:a parameter replaces the more familiar -b:a bitrate flag used in formats like MP3. The OGA file extension is semantically equivalent to OGG but signals to media players and operating systems that the container holds audio-only content, which aids in proper MIME type handling (audio/ogg) and prevents confusion with Ogg video formats like OGV. One notable limitation: if the source AVI carries audio in a format that libvorbis cannot decode directly (rare but possible with some proprietary AVI variants), FFmpeg will attempt to use an intermediate decoder automatically. Lossless conversion is achievable by substituting -c:a flac in the command, but FLAC output inside an OGA container will be significantly larger than Vorbis and is best suited for archival rather than distribution.