All Topics  
Audio Video Interleave

 

   Email Print
   Bookmark   Link

 

Audio Video Interleave


 
 

Audio Video Interleave, known by its acronym AVI, is a multimediaMultimedia

Multimedia is media that uses multiple forms of information content and information processing to inform or entertain the ...
 container format introduced by MicrosoftMicrosoft

company_name = Microsoft Corporation| company_logo = ...
 in November 1992 as part of its Video for WindowsVideo for Windows

Video for Windows, was a multimedia framework developed by Microsoft that allowed Microsoft Windows to play digital video....
 technology. AVI files can contain both audio and video data in a file container that allows synchronous audio-with-video playback. Like the DVD video format, AVI files support multiple streaming audio and video, although these features are seldom used. Most AVI files also use the file format extensions developed by the MatroxMatrox

Matrox Electronic Systems Ltd is a Canadian company based in Dorval, Quebec, which produces video card components and equipm...
 OpenDML group in February 1996. These files are supported by Microsoft, and are unofficially called "AVI 2.0".

Format

AVI is a derivative of the Resource Interchange File Format (RIFF), which divides a file's data into blocks, or "chunks." Each "chunk" is identified by a FourCCFourCC

A FOURCC is a sequence of four bytes used to uniquely identify data formats....
 tag. An AVI file takes the form of a single chunk in a RIFF formatted file, which is then subdivided into two mandatory "chunks" and one optional "chunk".

The first sub-chunk is identified by the "hdrl" tag. This sub-chunk is the file header and contains metadata about the video, such as its width, height and frame rateFrame rate

Frame rate, or frame frequency, is the measurement of how quickly an imaging device produces unique consecutive images calle...
. The second sub-chunk is identified by the "movi" tag. This chunk contains the actual audio/visual data that make up the AVI movie. The third optional sub-chunk is identified by the "idx1" tag which indexes the offsets of the data chunks within the file.

By way of the RIFF format, the audio/visual data contained in the "movi" chunk can be encoded or decoded by software called a codecCodec

A Codec is a device or program capable of performing encoding and decoding on a digital data stream or signal....
, which is an abbreviation for (en)coder/decoder. Upon creation of the file, the codec translates between raw data and the (compressed) data format used inside the chunk. An AVI file may carry audio/visual data inside the chunks in virtually any compression scheme, including Full Frame (Uncompressed), Intel Real Time, CinepakCinepak

Cinepak is a video codec developed by SuperMatch, a division of SuperMac Technologies, and released in 1992 as part of Apple...
, Motion JPEG, Editable MPEG, VDOWave, ClearVideo / RealVideoRealVideo

RealVideo is a proprietary video format developed by RealNetworks....
, QPEGQPEG

QPEG is a video codec created by Q-Team that uses run-length encoding, interframe differencing and motion compensation Mike ...
, and MPEG-4MPEG-4

MPEG-4 is a standard used primarily to compress audio and video digital data....
 Video.

Continued use

There is significant overhead when used with popular MPEG-4 codecs, increasing file size more than necessary. The AVI container has no native support for modern MPEG-4 features like B-FramesB pictures

B pictures are one of the three major picture types found in typical video compression designs....
. Hacks are sometimes used to enable modern MPEG-4 features and subtitles, however, this is the source of playback incompatibilities.

The highly-efficient H.264 codecs commonly used for MP4 files are ill-suited to the AVI file container; this is particularly true of H.264 Main Profile (MP) and High Profile (HiP) codecs.

AVI files do not contain pixel aspect ratio information. Microsoft confirms that "many players, including Windows Media Player, render all AVI files with square pixels. Therefore, the frame appears stretched or squeezed horizontally when the file is played back." There are other video container formatsComparison of container formats

This table compares features of container formats....
 that allow irregular shaped pixels.

More modern container formats (such as QuickTimeQuickTime

QuickTime is a multimedia framework developed by Apple Computer, capable of handling various formats of digital video, media...
, MatroskaMatroska

Matroska is a project to develop an open source multimedia container format similar to Apple's QuickTime, MPEG's MP4 or Micr...
, OggOgg

Ogg is a patent-free, fully open and standardised multimedia bitstream container format designed for efficient streaming and...
 and MP4) offer more flexibility, however, the age of the AVI format, being widely supported on a vast range of operating systems and devices, and the availability of video editing and playback software like VirtualDubVirtualDub

VirtualDub is an open source video capture and linear processing tool for Microsoft Windows....
 and Windows Media PlayerWindows Media Player

Windows Media Player is a proprietary software digital media player and media library application developed by Microsoft th...
 help keep the AVI file format popular amongst amateur videographers. To improve interoperability with the widest possible audience, videographers commonly install DirectShowDirectShow

DirectShow, codename Quartz, is a multimedia framework and API produced by Microsoft for software developers to perform ...
 filters like ffdshowFfdshow

ffdshow is an open source decoder mainly used for the fast and high-quality decoding of video in the MPEG-4 ASP and AVC form...
 to augment DirectShow, using AVI as a common-ground, lowest-common-denominator format.

Projects based on the FFmpegFFmpeg

FFmpeg is a collection of free software that can record, convert and stream digital audio and video....
 project, including MPlayerMPlayer

MPlayer is a free and open source media player distributed under the GNU General Public License....
, xineXine

xine is a multimedia playback engine for Unix-like operating systems released under the GNU General Public License....
, and VLC media playerVLC media player

VLC media player is a free and open source media player distributed under the GNU General Public License made by the VideoLA...
, have solved most problems with viewing AVI format video files.

In June 2005, DivX, Inc.DivX, Inc.

DivX, Inc., based in San Diego, California, is the company behind the popular MPEG-4 codec, DivX....
 released its own container format called DivX Media Format (.divx extension) to succeed the AVI + DivX combo. However, this format is basically an enhanced AVI format (based on the same RIFF structure, for backward compatibility with existing players and devices) and so far, has gained no perceivable consumer traction, even where the DivX codec was once popular (the Xvid codec has instead become the codec of choice among most of the file-sharing groups ).

DV AVI

DV AVI (aka DV-AVI) is a type of AVI file where the video has been compressed to conform with DVDV

and [[VHS-C]...
 standards. Typically, a DV device such as a DV camcorderCamcorder Summary

A camcorder is a portable electronic device for recording video * PictBridge...
 captures video in this format. Contrary to popular belief owing to the larger size of DV AVI files, the format is not uncompressed, but compresses only the individual frames, and does not apply intraframe compression leading to relatively higher file sizes with lesser quality loss than files compressed using AVI compression codecs. There are two types of DV AVI files:

  • Type 1: The multiplexed Audio-Video is kept in its original multiplexing and saved together into the Video section of the AVI file. This does not waste much space (audio is saved uncompressed, but even uncompressed audio is tiny compared to the video part of DV). Windows applications based on the Video for WindowsVideo for Windows

    Video for Windows, was a multimedia framework developed by Microsoft that allowed Microsoft Windows to play digital video....
     API do not support it by default since a Type 1 DV AVI decompressor is not part of Windows.
  • Type 2: Like Type 1, but audio is also saved as an additional audio stream into the file. This type supported by Video for WindowsVideo for Windows

    Video for Windows, was a multimedia framework developed by Microsoft that allowed Microsoft Windows to play digital video....
     applications, at the cost of slightly increased file size.


Type 1 is the newer of the two types. Microsoft made the "type" designations, and decided to name their older Video for Windows-compatible version "Type 2". In the late 1990s through early 2000s, most professional-level DV software, including non-linear editing programs, only supported Type 1. One notable exception was Adobe Premiere, which only supported Type 2. High-end FireWire camcorders usually captured to Type 1 only, while consumer level camcorders usually captured to Type 2 only. Software is available for converting Type 1 DV AVI files to Type 2, and vice-versa.

See also

  • Comparison of container formatsComparison of container formats Overview

    This table compares features of container formats....
  • Video editing softwareVideo editing software

    Video editing software is application software that handles the editing of video sequences on a computer....


External links

  • Software, guides and support for AVI container format