Convert AVI to OGG — Free Online Tool

Convert AVI files to OGG format, extracting and re-encoding the audio track using the Vorbis codec — a fully open, patent-free audio format developed by Xiph.Org. This is ideal for stripping legacy AVI video down to a high-quality, streamable audio file compatible with open-source media ecosystems.

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

AVI is a video container that typically holds both a video stream (often H.264 via libx264) and an audio stream (commonly MP3 via libmp3lame). Since OGG is a purely audio-oriented container in this context and does not carry video, the video stream from the AVI file is discarded entirely during conversion. The audio stream is decoded from its original format (e.g., MP3 or AAC) and then re-encoded as Vorbis using libvorbis — OGG's native and most widely supported audio codec. This means the audio undergoes a full transcode rather than a simple remux, with quality controlled by the Vorbis variable-bitrate quality scale.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg command-line tool — the same underlying engine that powers this browser-based converter via FFmpeg.wasm compiled to WebAssembly.
-i input.avi Specifies the input file as an AVI container, which FFmpeg will demux to extract its interleaved audio and video streams for processing.
-c:a libvorbis Sets the audio codec to libvorbis, re-encoding the AVI's original audio (typically MP3 or AAC) into the Vorbis format required for an OGG container — this is a full transcode, not a copy.
-q:a 4 Sets Vorbis's variable bitrate quality level to 4 on a scale of 0–10, targeting approximately 128 kbps — a balanced default that produces good audio quality for both music and speech at a reasonable file size.
output.ogg Defines the output filename with the .ogg extension, which tells FFmpeg to wrap the encoded Vorbis audio stream into an OGG container. No video stream is included because OGG does not support video in this configuration, so it is automatically discarded.

Common Use Cases

  • Extracting the audio commentary or narration from a legacy AVI training video to publish as an open-format podcast or audiobook episode
  • Archiving audio from old AVI home video recordings into a compact, patent-free OGG/Vorbis file for long-term open-source storage
  • Preparing audio assets from AVI game cutscenes or recordings for use in open-source game engines like Godot, which natively support OGG/Vorbis
  • Converting AVI lecture recordings to OGG so the audio can be streamed efficiently on open-source media platforms or self-hosted educational sites
  • Stripping the video from large AVI files to produce lightweight OGG audio tracks for use in open-source web applications or HTML5 audio players
  • Extracting a music performance or live event recorded in AVI format into an OGG file for distribution on Linux-centric or free-software music platforms

Frequently Asked Questions

Since the AVI's audio stream (typically MP3 or AAC) must be fully decoded and re-encoded into Vorbis, this is a lossy-to-lossy transcode, which means some audio quality is lost in the process. The default Vorbis quality setting of -q:a 4 targets approximately 128 kbps and produces good results for speech and most music. To minimize quality loss, use a higher -q:a value (up to 10) to encode at a higher bitrate, though the audio will never be bit-for-bit identical to the original.
The OGG container in this configuration is used strictly as an audio container — it holds Vorbis, Opus, or FLAC audio streams but no video. Since OGG has no video codec support in this tool, the video stream from the AVI file is automatically dropped during conversion. If you need to keep the video, you should convert to a format like MKV or MP4 instead.
MP3 (via libmp3lame) is a patented lossy codec with near-universal hardware and software support, while Vorbis is a patent-free, open-source lossy codec developed by Xiph.Org. At equivalent bitrates, Vorbis generally delivers slightly better audio quality than MP3, but OGG/Vorbis files have more limited hardware device support — most modern browsers and Linux media players support it natively, but some older devices and dedicated audio hardware do not.
The quality is controlled by the -q:a flag, which uses Vorbis's variable bitrate quality scale from 0 (lowest, ~64 kbps) to 10 (highest, ~500 kbps), with 4 as the default (roughly 128 kbps). To increase quality for music, change it to -q:a 6 or -q:a 8. To reduce file size for speech or voice recordings, -q:a 2 or -q:a 3 is often sufficient. For example: ffmpeg -i input.avi -c:a libvorbis -q:a 6 output.ogg
AVI has limited and inconsistently implemented metadata support, while OGG has robust metadata tag support via the Vorbis Comment standard. FFmpeg will attempt to transfer any metadata tags present in the AVI file (such as title, artist, or comment fields) to the OGG output. However, because AVI metadata is often incomplete or missing entirely, you may find the OGG file needs its tags added or corrected manually after conversion using a tool like MusicBrainz Picard or EasyTag.
Yes. On Linux or macOS, you can use a shell loop to process all AVI files in a directory at once: for f in *.avi; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.avi}.ogg"; done. On Windows Command Prompt, use: for %f in (*.avi) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.ogg". This is particularly useful when this browser-based tool's 1GB limit is a constraint and you need to process many large files locally.

Technical Notes

The AVI container supports multiple audio tracks, but OGG also supports multiple streams, so secondary audio tracks from the source AVI should be preserved if present — though most AVI files in practice carry only a single audio stream. AVI does not support subtitles or chapters, and neither does OGG in this tool's configuration, so no data is lost on those fronts. The primary quality consideration is the double-lossy transcode: if the AVI's audio was already compressed as MP3 at 128 kbps and you encode to Vorbis at -q:a 4 (also ~128 kbps), artifacts from both encode generations accumulate. For archival purposes, setting -q:a 9 or -q:a 10 can help preserve as much of the original quality as possible. Vorbis encoding via libvorbis is well-established and produces broadly compatible OGG files, though if your target environment supports it, libopus is a newer, more efficient alternative codec that could be substituted with -c:a libopus -b:a 128k for better quality at lower bitrates.

Related Tools