Processed on this device
File formats at a glance.Formats

AVI file: legacy video container and codec compatibility

.avi

AVI is an older Microsoft multimedia container in the RIFF family. It can carry many video and audio codecs but has fewer standardized features for modern timestamps, subtitles and streaming than MP4 or MKV.

Format at a glance

Full name
Audio Video Interleave
File extensions
.avi
MIME types
video/x-msvideo
Category
Video
Compression
Depends on the contained codec
Transparency
Not applicable
Animation
Not applicable
Properties
Multiple media tracks

Suitable tools

What is this format?

AVI means Audio Video Interleave. RIFF chunks organize the data and interleave audio and video blocks for playback.

The extension does not identify the codec. MPEG-4 Part 2 with MP3 was common, while H.264, MJPEG, DV, uncompressed video and PCM audio also occur.

What is it used for?

  • Legacy Windows video archives
  • Camera and capture software
  • Uncompressed or MJPEG intermediate video
  • Exchange with older applications

Which programs can open it?

  • VLC and mpv
  • Windows Media Player with matching codecs
  • VirtualDub and legacy video software
  • FFmpeg and current editors with AVI import

Support across devices and browsers

Windows

VLC, mpv and matching system codecs play AVI; the contained codecs determine compatibility.

macOS

QuickTime supports selected combinations, while VLC and FFmpeg cover additional AVI variants.

Linux

VLC, mpv and FFmpeg handle many AVI codec combinations.

Android

Playback and hardware decoding depend on the device and contained codecs.

iOS

Apple devices primarily support common H.264, HEVC and AAC combinations.

Browsers

The container alone is insufficient: the browser must support every contained video and audio codec.

Advantages

  • Broad support in older Windows software
  • Can carry many different codecs
  • Suitable for simple intermediate and capture files

Disadvantages

  • Weak support for modern container features
  • Old files may require codec packages
  • Some variants have large files or timestamp problems

Comparison with alternatives

AVI vs. MP4

MP4 is more modern, streaming-friendly and usually more compatible on current devices.

AVI vs. MKV

MKV handles tracks, subtitles, chapters and modern codecs more flexibly.

AVI vs. M4V

M4V uses MPEG-4 structures and is common in Apple-oriented workflows.

LocalFileLab support

InputSupported

AVI is recognized as an input. Containers and media streams are read locally depending on their codecs.

OutputSupported

AVI is available as a local output; available settings depend on the format.

CompressionSupported

LocalFileLab can compress AVI locally or package it in a supported archive; already compressed content will not necessarily become smaller.

PreviewSupported

A local preview is available when the browser can display or play the content.

MetadataSupported

Existing metadata can be retained or removed depending on the selected path.

Container and codecs

The LocalFileLab statements below come from the FFmpeg/WASM and WebCodecs paths actually configured in the repository. Decoders or tracks not explicitly evidenced in code are marked unverified.

Container
AVI
Typical video codecs
MPEG-4 Part 2, H.264 / AVC, MJPEG, WMV2
Typical audio codecs
MP3, PCM, AC-3
CodecTypeInputOutputNotes
MPEG-4 Part 2VideoUnverifiedSupportedThe project does not enumerate the FFmpeg/WASM input decoder per codec. A concrete FFmpeg/WASM encoder is configured in the repository.
H.264 / AVCVideoUnverifiedSupportedThe project does not enumerate the FFmpeg/WASM input decoder per codec. A concrete FFmpeg/WASM encoder is configured in the repository.
MJPEGVideoUnverifiedNot supportedThe project does not enumerate the FFmpeg/WASM input decoder per codec. This codec is not offered as an output for this container.
WMV2VideoUnverifiedSupportedThe project does not enumerate the FFmpeg/WASM input decoder per codec. A concrete FFmpeg/WASM encoder is configured in the repository.
MP3AudioUnverifiedSupportedThe project does not enumerate the FFmpeg/WASM input decoder per codec. A concrete FFmpeg/WASM encoder is configured in the repository.
PCMAudioUnverifiedSupportedThe project does not enumerate the FFmpeg/WASM input decoder per codec. A concrete FFmpeg/WASM encoder is configured in the repository.
AC-3AudioUnverifiedNot supportedThe project does not enumerate the FFmpeg/WASM input decoder per codec. This codec is not offered as an output for this container.
Text and subtitle tracksSubtitleUnverifiedNot supportedThis track is not mapped explicitly during export.

Tracks and metadata

Subtitle tracks
Unverified
Multiple audio tracks
Not supported
Chapters
Unverified
Metadata
Configurable

Known combinations

MPEG-4 Part 2 + MP3Output path configured

A concrete FFmpeg/WASM encoder is configured in the repository.

H.264 / AVC + PCMOutput path configured

A concrete FFmpeg/WASM encoder is configured in the repository.

Related formats

Frequently asked questions

Why does an AVI file not play?

The container may be recognized while the required audio or video codec is missing from the system or browser.

Is AVI a codec?

No. AVI is a container that may carry MPEG-4 Part 2, H.264, MJPEG, MP3 or PCM, among others.

Should AVI be converted to MP4?

MP4 with H.264/AAC is normally better for current devices and web playback. Editing or archiving may call for a different lossless target.