Extract Audio from AVI to AIF — Free Online Tool
Extract audio from AVI files and save it as AIF (Audio Interchange File Format), converting compressed audio streams like MP3 or AAC into uncompressed 16-bit big-endian PCM — Apple's native lossless audio container. Ideal for archiving AVI audio at maximum fidelity or preparing tracks for use in Mac-based audio workflows.
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 store audio using compressed codecs like MP3 (libmp3lame) or AAC. During this conversion, FFmpeg discards the video stream entirely (-vn) and decodes the compressed audio track into raw PCM samples, then re-encodes them as 16-bit big-endian PCM (pcm_s16be) wrapped in Apple's AIF container. This is not a simple remux — because AIF uses uncompressed PCM and AVI does not natively carry PCM audio in the same format, the audio must be fully decoded and re-encoded. The result is a lossless AIF file, but note that any quality lost during the original AVI compression (e.g., if the source used 128k MP3) cannot be recovered — the AIF will be a lossless representation of that already-compressed signal.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary — the open-source multimedia processing engine that handles the decoding of the AVI container and its compressed audio stream, and the encoding into the AIF output format. |
-i input.avi
|
Specifies the input AVI file. FFmpeg reads the AVI container, identifying its interleaved audio and video streams — typically MP3 or AAC audio alongside a video track — and makes them available for processing. |
-vn
|
Disables video output entirely, telling FFmpeg to ignore the AVI's video stream. Since AIF is an audio-only format, this flag ensures no attempt is made to encode the video, speeding up the process and keeping the output clean. |
-c:a pcm_s16be
|
Sets the audio codec to 16-bit signed big-endian PCM, which is the standard uncompressed audio format used inside AIF files. This decodes the AVI's compressed audio (MP3 or AAC) into raw PCM samples using the byte order and bit depth that AIF requires. |
output.aif
|
Defines the output filename and tells FFmpeg to wrap the PCM audio data in Apple's AIF container format. The .aif extension triggers FFmpeg to use the correct AIF muxer, including the proper FORM/AIFF chunk structure that Mac applications expect. |
Common Use Cases
- Extracting a musical performance or soundtrack from an archival AVI file to preserve it in lossless AIF format for long-term Mac-based storage
- Pulling audio from old AVI home videos or camcorder recordings to edit in Logic Pro or GarageBand, which natively handle AIF files
- Converting AVI-sourced dialogue or voiceover recordings to AIF for import into Final Cut Pro audio timelines without re-compression artifacts
- Preparing audio extracted from AVI screencasts or lecture recordings for lossless editing before later export to a delivery format
- Stripping the audio from an AVI interview recording into AIF for transcription services or professional audio mastering workflows
- Archiving the audio track from legacy AVI broadcast recordings into an uncompressed AIF master for future use
Frequently Asked Questions
The AIF file itself is lossless and uncompressed, but it cannot recover quality that was lost when the audio was originally encoded as MP3 or AAC inside the AVI. Think of it like scanning a photocopy — the scan is perfect, but the original compression artifacts remain. If your AVI's audio was stored at 128k MP3, the resulting AIF will be a pristine, uncompressed capture of that 128k-quality signal, not a reconstruction of the original studio recording.
AIF stores audio as uncompressed PCM samples, which is inherently far larger than the compressed MP3 or AAC audio track inside your AVI. A one-minute stereo audio track at 44.1kHz in 16-bit PCM requires roughly 10MB, whereas the same audio compressed as 128k MP3 would be about 1MB. The AVI's video stream is also discarded, but the uncompressed nature of AIF is the primary reason for the size difference between the audio-only output and the original file.
No. AIF is a single-track audio format and cannot contain multiple audio streams. AVI files can technically carry multiple audio tracks, but this FFmpeg command extracts only the default (first) audio track. If your AVI has multiple audio tracks and you need a specific one, you would need to add a flag like -map 0:a:1 to select the second audio track before running the conversion.
Yes. The command uses pcm_s16be (16-bit signed big-endian PCM) by default, but AIF also supports higher bit depths. You can replace pcm_s16be with pcm_s24be for 24-bit audio, or pcm_s32be for 32-bit, simply by changing the -c:a flag value. For example: ffmpeg -i input.avi -vn -c:a pcm_s24be output.aif. Higher bit depths increase file size but are useful if you plan to do professional audio editing where headroom matters.
Yes. On macOS or Linux, you can run a shell loop: for f in *.avi; do ffmpeg -i "$f" -vn -c:a pcm_s16be "${f%.avi}.aif"; done. On Windows Command Prompt, use: for %f in (*.avi) do ffmpeg -i "%f" -vn -c:a pcm_s16be "%~nf.aif". This processes each AVI in the current directory and outputs a corresponding AIF file. The browser-based tool handles one file at a time, so the FFmpeg command is especially valuable for batch workflows.
AVI has limited and inconsistently implemented metadata support, and AIF has its own metadata chunk structure. FFmpeg will attempt to map any metadata it finds in the AVI to the AIF container, but results vary depending on how the source AVI was created. Embedded tags like title or artist may transfer, but you should verify the output in a tool like MediaInfo or iTunes after conversion, particularly if the AIF will be used in a library or DAW context where metadata matters.
Technical Notes
AIF uses big-endian byte ordering in its PCM data, which is why FFmpeg specifies pcm_s16be (signed 16-bit big-endian) rather than the little-endian pcm_s16le used in WAV files. This is native to AIF's Apple heritage and is correctly handled by all Mac-native applications including Logic Pro, GarageBand, and Final Cut Pro. The default 16-bit depth matches CD-quality audio and is appropriate for most AVI sources, which rarely contain audio at better than 48kHz/16-bit. AIF does not support chapters, subtitles, or multiple audio streams — all of which AVI can technically carry — so this conversion is purely audio-focused. There is no sample rate conversion in this command; the output AIF will inherit whatever sample rate the AVI audio used (commonly 44100Hz or 48000Hz). If your AVI contains no audio track, FFmpeg will return an error and no output file will be created.