All Topics  
Audio Video Interleave

 

   Email Print
   Bookmark   Link






 

Audio Video Interleave



 
 
Audio Video Interleave, known by its acronym AVI, is a multimedia
Multimedia

Multimedia is media and content that utilizes a combination of different content format. The term can be used as a noun or as an adjective describing a medium as having multiple content forms....
 container format introduced by Microsoft
Microsoft

Microsoft Corporation is a multinational corporation computer technology corporation that develops, manufactures, licenses, and supports a wide range of computer software products for computing devices....
 in November 1992 as part of its Video for Windows
Video 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
DVD-Video

DVD-Video is a consumer video format used to store digital video on DVD discs, and is currently the dominant consumer video format in Canada, Europe and Australia....
, 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 Matrox
Matrox

Matrox Electronic Systems Ltd is a Canada company based in Dorval, Quebec, which produces graphics card components and equipment for personal computers....
 OpenDML group in February 1996.






Discussion
Ask a question about 'Audio Video Interleave'
Start a new discussion about 'Audio Video Interleave'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Audio Video Interleave, known by its acronym AVI, is a multimedia
Multimedia

Multimedia is media and content that utilizes a combination of different content format. The term can be used as a noun or as an adjective describing a medium as having multiple content forms....
 container format introduced by Microsoft
Microsoft

Microsoft Corporation is a multinational corporation computer technology corporation that develops, manufactures, licenses, and supports a wide range of computer software products for computing devices....
 in November 1992 as part of its Video for Windows
Video 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
DVD-Video

DVD-Video is a consumer video format used to store digital video on DVD discs, and is currently the dominant consumer video format in Canada, Europe and Australia....
, 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 Matrox
Matrox

Matrox Electronic Systems Ltd is a Canada company based in Dorval, Quebec, which produces graphics card components and equipment for personal computers....
 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 FourCC
FourCC

A FourCC is a sequence of four bytes used to uniquely identify data formats. The concept originated in the OSType scheme used in the Mac OS and was adopted for the Amiga/Electronic Arts Interchange File Format and derivatives....
 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 rate
Frame rate

Frame rate, or frame frequency, is the measurement of the frequency at which an imaging device produces unique consecutive images called Film frames....
. 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 codec
Codec

A codec is a device or computer program capable of encoder and/or Decoding methods a digital data stream or signal . The word codec is a portmanteau of 'compressor-decompressor' or, most commonly, 'coder-decoder'....
, 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 (Indeo
Indeo

Indeo Video is a video codec developed by Intel in 1992. It was sold to Ligos Corporation in 2000. While its original version was related to Intel's Digital Video Interactive video stream format, a hardware-only codec for the compression of television-quality video onto compact disks, Indeo was distinguished by being one of the first code...
), Cinepak
Cinepak

Cinepak is a video codec developed by SuperMatch, a division of SuperMac, and released in 1992 as part of Apple Computer's QuickTime video suite....
, Motion JPEG, Editable MPEG, VDOWave, ClearVideo / RealVideo
RealVideo

RealVideo is a proprietary format video format developed by RealNetworks. It was first released in 1997 and is at version 11. RealVideo is supported on many platforms, including Windows, Mac, Linux, Solaris, and several mobile phones....
, QPEG
QPEG

# Is a video codec created by Q-Team that uses run-length encoding, interframe differencing and motion compensation .# It was also a popular image viewer for the obsolete MS-DOS operating system in the early 1990s....
, and MPEG-4
MPEG-4

MPEG-4 is a collection of methods defining Video compression of audio and visual digital data. It was introduced in late 1998 and designated a standardization for a group of sound and video coding formats and related technology agreed upon by the International Organization for Standardization/International Electrotechnical Commission Moving...
 Video.

Continued use

There is slight overhead when used with popular MPEG-4 codecs (Xvid
XviD

Xvid is a video codec library following the MPEG-4 standard, specifically MPEG-4 Part 2. It uses ASP features such as b-frames, global and quarter pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG and custom quantization ....
 and DivX
DivX

DivX is a brand name of products created by DivX, Inc. , including the DivX Codec which has become popular due to its ability to video compression lengthy video segments into small sizes while maintaining relatively high visual quality....
, for example), increasing file size more than necessary. The AVI container has no native support for modern MPEG-4 features like B-Frames
B pictures

In the field of video compression a video frame is compressed using different algorithms with different advantages and disadvantages, centered mainly around amount of data compression....
. Hacks are sometimes used to enable modern MPEG-4 features and subtitles, however, this is the source of playback incompatibilities.

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 formats
Comparison of container formats

This table compares features of container format . Note that DirectShow filters allow playing on any DirectShow-based player, including Windows Media Player....
 that allow irregular shaped pixels.

More modern container formats (such as QuickTime
QuickTime

QuickTime is a multimedia framework developed by Apple Inc., capable of handling various formats of digital video, media clips, sound, text, animation, music, and QuickTime VRs....
, Matroska
Matroska

The Matroska Multimedia Container is an open standard free file format container format , a file format that can hold an unlimited number of video, audio, picture or subtitle tracks inside a single file....
, Ogg
Ogg

Ogg is a free file format, open standard container format maintained by the Xiph.Org Foundation. The Ogg format is unrestricted by software patents and is designed to provide for efficient streaming media and manipulation of high quality digital multimedia....
 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 VirtualDub
VirtualDub

VirtualDub is a video capture and video processing utility for Microsoft Windows written by Avery Lee.It is designed to process linear video streams, including filtering and recompression, but lacks features common to dedicated video editing software....
 and Windows Media Player
Windows Media Player

Windows Media Player is a digital media media player and media library application developed by Microsoft that is used for playing sound reproduction, video and viewing s on personal computers running the Microsoft Windows operating system, as well as on Pocket PC and Windows Mobile-based devices....
 help keep the AVI file format popular amongst amateur videographers. To improve interoperability with the widest possible audience, videographers commonly install DirectShow
DirectShow

DirectShow , codename Quartz, is a multimedia framework and application programming interface produced by Microsoft for software developers to perform various operations with media files or streams....
 filters like ffdshow
Ffdshow

ffdshow is a multimedia codec mainly used for the fast and high-quality decoding of video in the MPEG-4 Part 2 and AVC video formats, but supporting numerous other video and audio formats as well....
 to augment DirectShow, using AVI as a common-ground, lowest-common-denominator format.

Projects based on the FFmpeg
FFmpeg

FFmpeg is a computer program that can record, convert and streaming media digital sound recording and video in numerous formats. FFmpeg is a command line tool that is composed of a collection of free software / open-source software library ....
 project, including ffdshow
Ffdshow

ffdshow is a multimedia codec mainly used for the fast and high-quality decoding of video in the MPEG-4 Part 2 and AVC video formats, but supporting numerous other video and audio formats as well....
, MPlayer
MPlayer

MPlayer is a free software and open source media player . The program is available for all major operating systems, including Linux and other Unix-like systems, Microsoft Windows and Mac OS X....
, xine
Xine

xine is a multimedia playback engine for Unix-like operating systems released under the GNU General Public License. xine is built around a shared library that supports different frontend player applications....
, and VLC media player
VLC media player

VLC media player is an open source, free software media player written by the VideoLAN project.VLC is a portable multimedia player, encoder, and streamer supporting many audio and video codecs and file formats as well as DVDs, Video CD, and various streaming media Communications protocol....
, 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 corporation behind the popular MPEG-4 codec, DivX. The company's codec has been downloaded over 240 million times since January 2003....
 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 DV
DV

Digital Video is a digital video format created by Sony, JVC, Panasonic and other video camera producers, and launched in 1995. In its smaller tape form factor MiniDV, has since become a standard for home and semi-professional video production; it is sometimes used for professional purposes as well, such as filmmaking and electronic...
 standards. Typically, a DV device such as a DV camcorder
Camcorder

A camcorder is a portable consumer electronics device for recording video and Sound recording using a built-in recorder unit. The camcorder contains both a video camera and a video recorder in one unit, hence its compound name....
 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 (intraframe or spatial compression), and does not apply interframe compression (temporal 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 Windows
    Video 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 Windows
    Video 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.

External links