Extract Audio from AVI to OGG — Free Online Tool
Extract audio from AVI video files and save it as OGG using the open Vorbis codec — ideal for stripping audio from legacy Microsoft multimedia containers into a freely licensed, streaming-friendly format. The conversion drops the video stream entirely and re-encodes the audio to Vorbis at variable bitrate quality level 4, balancing file size and fidelity.
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 commonly carry audio encoded in MP3 (libmp3lame), AAC, or Vorbis. During this extraction, FFmpeg discards the video stream entirely using the -vn flag and re-encodes the audio track to Vorbis (libvorbis) wrapped in an OGG container. Because AVI's default audio codec is MP3 and OGG's default is Vorbis, a full audio transcode is always performed here — the audio is decoded from its source format and re-encoded as Vorbis using a variable bitrate quality scale. OGG/Vorbis is a completely open, patent-free format developed by Xiph.Org, and the resulting file supports metadata tags and chapter markers that AVI itself cannot store.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg command-line tool, which in the browser version is running as FFmpeg.wasm compiled to WebAssembly — the same underlying engine, executed locally in your browser without any server involvement. |
-i input.avi
|
Specifies the input AVI file. FFmpeg will demux this legacy Microsoft container, separating its interleaved audio and video chunks so each stream can be handled independently. |
-vn
|
Disables all video output, telling FFmpeg to discard the video stream from the AVI entirely. This is what makes this a pure audio extraction — no video data is written to the OGG output file. |
-c:a libvorbis
|
Specifies Vorbis as the audio encoder for the output, using the libvorbis reference implementation. Vorbis is the native and most widely supported codec for OGG containers, and since AVI's default audio (MP3) cannot be stream-copied into OGG, a full re-encode to Vorbis is always required here. |
-q:a 4
|
Sets the Vorbis encoder to variable bitrate quality level 4 on a scale of 0–10, targeting approximately 128 kbps. Unlike the fixed-bitrate MP3 audio typical in AVI files, Vorbis quality mode dynamically allocates bits based on audio complexity, generally delivering better perceived quality than an equivalent fixed-bitrate encode. |
output.ogg
|
Defines the output filename and tells FFmpeg to wrap the encoded Vorbis audio stream in an OGG container — an open, patent-free format developed by Xiph.Org that supports metadata tags and is natively supported by web browsers, Linux desktop environments, and open-source game engines. |
Common Use Cases
- Extracting the audio commentary track from an old AVI screen recording or tutorial video to publish as a standalone podcast episode in an open format
- Pulling the audio from AVI-format game cutscenes or demo recordings to create royalty-free Vorbis audio assets for use in open-source game engines that natively support OGG
- Stripping audio from legacy AVI home videos archived on old hard drives to produce smaller, streamable OGG files for web players without re-uploading the full video
- Converting AVI audio tracks to OGG/Vorbis for use in Godot, Unity, or other game engines that prefer or require OGG format for background music and sound effects
- Extracting and converting speech or narration from AVI presentations into OGG files for archiving alongside open-document formats in a fully open-standard workflow
- Removing the video from large AVI files containing only music performances or concerts to share audio-only OGG files at a fraction of the original file size
Frequently Asked Questions
Yes — if the AVI contains MP3 or AAC audio, this conversion involves a generation of lossy re-encoding, since the audio is decoded and then re-encoded to Vorbis. If your AVI already contains Vorbis audio (libvorbis), you still pay a small quality cost because OGG and AVI handle Vorbis streams differently and FFmpeg re-encodes rather than stream-copies in this pipeline. To minimize quality loss, increase the -q:a value (try 6, 7, or 8) before converting, especially if you plan to edit the audio further afterward.
The Vorbis encoder uses a variable bitrate quality scale from 0 (lowest, roughly 64 kbps) to 10 (highest, roughly 500 kbps). A -q:a value of 4 targets approximately 128 kbps and is considered a good general-purpose setting that most listeners find indistinguishable from higher bitrates for typical speech and music. Unlike the AVI input's fixed bitrate audio options (64k–320k), Vorbis quality mode allows the encoder to allocate bits dynamically, using more for complex passages and fewer for silence or simple tones.
AVI does technically support multiple audio tracks, and OGG can also carry multiple audio streams. However, the FFmpeg command shown here extracts only the first audio track by default. If your AVI file contains multiple audio tracks — common in some ripped or authored AVI files — you would need to add a -map 0:a:1 flag (replacing 1 with the track index) to target a specific track, or use multiple output files to extract each track separately.
AVI has very limited and non-standard metadata support, so most AVI files carry little to no embedded tag information. OGG, by contrast, has robust Vorbis comment metadata support for fields like TITLE, ARTIST, ALBUM, and DATE. The FFmpeg command as written will copy whatever minimal metadata exists in the AVI file into the OGG output, but in practice you will likely want to add metadata manually afterward using a tag editor like MusicBrainz Picard or EasyTag, since AVI rarely preserves that data reliably.
To increase quality, change the -q:a value — for example, use -q:a 7 or -q:a 9 for higher fidelity Vorbis output. To switch the codec to Opus (another excellent open codec supported by OGG), replace -c:a libvorbis -q:a 4 with -c:a libopus -b:a 128k — note that Opus uses a bitrate parameter (-b:a) rather than a quality scale. Opus generally achieves better quality than Vorbis at the same bitrate, especially below 128 kbps, making it a strong choice for speech extraction from AVI files.
FFmpeg processes one input file per command, but you can batch convert on the command line using a shell loop. On Linux or macOS, run: for f in *.avi; do ffmpeg -i "$f" -vn -c:a libvorbis -q:a 4 "${f%.avi}.ogg"; done. On Windows Command Prompt, use: for %f in (*.avi) do ffmpeg -i "%f" -vn -c:a libvorbis -q:a 4 "%~nf.ogg". The browser-based tool processes one file at a time, so the FFmpeg command shown is especially valuable when you need to process many large AVI files locally.
Technical Notes
AVI (Audio Video Interleave) is a legacy Microsoft container that stores interleaved audio and video chunks with strict alignment requirements, which is part of why it struggles with modern codecs and variable frame rates. When extracting audio from AVI, the interleaved structure is irrelevant — FFmpeg demuxes only the audio stream. The default audio codec in AVI is MP3 (libmp3lame), meaning most AVI files will require a full transcode from MP3 to Vorbis, not a lossless stream copy. OGG as a container is strictly audio-only in this context (the video stream from the AVI is dropped with -vn), though the OGG container format itself supports chapter markers which Vorbis comment blocks can carry — a capability AVI entirely lacks. One known limitation: AVI files occasionally contain raw PCM or ADPCM audio tracks from older software, which FFmpeg can still decode and transcode to Vorbis, but very old or malformed AVI files with non-standard codec tags may require additional flags like -fflags +genpts to process correctly. File sizes will typically be significantly smaller than the original AVI since video data is discarded and Vorbis at q:a 4 is efficient, but the audio-only OGG will be larger than the audio-only portion of the AVI if the original AVI audio was encoded at a low MP3 bitrate.