HOME

TheInfoList



OR:

Audio Video Interleave (also Audio Video Interleaved and known by its initials and
filename extension A filename extension, file name extension or file extension is a suffix to the name of a computer file (for example, .txt, .mp3, .exe) that indicates a characteristic of the file contents or its intended use. A filename extension is typically d ...
AVI, usually pronounced ) is a proprietary multimedia
container format A container format (informally, sometimes called a wrapper) or metafile is a file format that allows multiple data streams to be embedded into a single file, usually along with metadata for identifying and further detailing those streams. Nota ...
and
Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
standard introduced by
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
in November 1992 as part of its
Video for Windows Video for Windows was a suite of video-playing and editing software introduced by Microsoft in 1992. A runtime version for viewing videos only was made available as a free add-on to Windows 3.1, which then became an integral component of Windows ...
software. AVI
file File or filing may refer to: Mechanical tools and processes * File (tool), a tool used to remove fine amounts of material from a workpiece. ** Filing (metalworking), a material removal process in manufacturing ** Nail file, a tool used to gen ...
s can contain both audio and video data in an uncompressed file container that allows synchronous audio-with-video playback. Like the DVD video format, AVI files support multiple
streaming Streaming media refers to multimedia delivered through a network for playback using a media player. Media is transferred in a ''stream'' of packets from a server to a client and is rendered in real-time; this contrasts with file downl ...
audio and video, although these features are seldom used. Codecs popularly used for AVI include
DivX DIVX (Digital Video Express) is a discontinued digital video format. Created in part by Circuit City, it was an unsuccessful attempt to create an alternative to video rental in the United States. The format's poor reception from consumers resu ...
and Xvid, although many other codecs can also be contained in an AVI file. Many AVI files use the file format extensions developed by the
Matrox Matrox Graphics, Inc. is a producer of graphics card, video card components and equipment for personal computers and workstations. Based in Dorval, Quebec, Canada, it was founded in 1976 by Lorne Trottier and Branko Matić. The name is derived ...
OpenDML group in February 1996. These files are supported by Microsoft, and are unofficially called AVI 2.0. In 2010 the
US government The Federal Government of the United States of America (U.S. federal government or U.S. government) is the national government of the United States. The U.S. federal government is composed of three distinct branches: legislative, execut ...
's
National Archives and Records Administration The National Archives and Records Administration (NARA) is an independent agency of the United States government within the executive branch, charged with the preservation and documentation of government and historical records. It is also task ...
defined AVI as the official wrapper for preserving
digital video Digital video is an electronic representation of moving visual images (video) in the form of encoded digital data. This is in contrast to analog video, which represents moving visual images in the form of analog signals. Digital video comprises ...
.


History

Publishers faced a predicament regarding how they should distribute videos on
CD-ROM A CD-ROM (, compact disc read-only memory) is a type of read-only memory consisting of a pre-pressed optical compact disc that contains computer data storage, data computers can read, but not write or erase. Some CDs, called enhanced CDs, hold b ...
s. Thirty seconds of video displayed in
24-bit color Color depth, also known as bit depth, is either the number of bits used to indicate the color of a single pixel, or the number of bits used for each color component of a single pixel. When referring to a pixel, the concept can be defined as bit ...
and at thirty
frames per second A frame is often a structural system that supports other components of a physical construction and/or steel frame that limits the construction's extent. Frame and FRAME may also refer to: Physical objects In building construction *Framing (co ...
and
Super VGA Super VGA (SVGA) or Extended VGA is a broad term that covers a wide range of computer display standards that extended IBM's VGA specification. When used as shorthand for a resolution, as VGA and XGA often are, SVGA refers to a resolution of 800& ...
resolutions could take up 680
megabyte The megabyte is a multiple of the unit byte for digital information. Its recommended unit symbol is MB. The unit prefix ''mega'' is a multiplier of (106) in the International System of Units (SI). Therefore, one megabyte is one million bytes ...
s of space—the storage capacity of most CD-ROMs in 1992. Lossily compressing the videos would save a lot of space, but not without degrading the quality of the videos. Publishers who were more concerned about video quality instead were searching for an ideal compression algorithm that would compress the video files while still preserving the quality. Microsoft recognized the problem and sought to develop a standard that would losslessly compress the video files. They also recognized that because of the hardware requirements for playing the videos in uncompressed quality, which at the time were demanding, it needed to allow users of low-end computers to play the videos in compressed quality. They developed and published the Audio Video Interleave format on November 10, 1992, as part of their Video for Windows, and included support for
codec A codec is a computer hardware or software component that encodes or decodes a data stream or signal. ''Codec'' is a portmanteau of coder/decoder. In electronic communications, an endec is a device that acts as both an encoder and a decoder o ...
s to satisfy those users.


Format

AVI is a subformat of the
Resource Interchange File Format Resource Interchange File Format (RIFF) is a generic file container format (digital), container format for storing data in tagged Chunk (information), chunks. It is primarily used for audio and video, though it can be used for arbitrary data. T ...
(RIFF), which divides a file's data into blocks, or "chunks". Each chunk is identified by a
FourCC A FourCC ("four-character code") is a sequence of four bytes (typically ASCII) used to uniquely identify data formats. It originated from the OSType or ResType metadata system used in classic Mac OS and was adopted for the Amiga/Electronic Arts ...
tag. An AVI file takes the form of a RIFF header, which is then divided into two mandatory chunks and one optional chunk. The first chunk is identified by the "hdrl" tag, which stores the information required by the codec to decompress the AVI file for viewing. The second sub-chunk is identified by the "movi" tag, containing the actual audio and visual data that make up the AVI video. The third optional 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 and visual data contained in the "movi" chunk can be encoded or decoded by software called a
codec A codec is a computer hardware or software component that encodes or decodes a data stream or signal. ''Codec'' is a portmanteau of coder/decoder. In electronic communications, an endec is a device that acts as both an encoder and a decoder o ...
, 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 and visual data inside the chunks in virtually any compression scheme, including Full Frame (Uncompressed),
Indeo Indeo Video (commonly known now simply as "Indeo") is a family of audio and video formats and codecs first released in 1992, and designed for real-time video playback on desktop CPUs. While its original version was related to Intel's DVI video st ...
,
run-length encoding Run-length encoding (RLE) is a form of lossless data compression in which ''runs'' of data (consecutive occurrences of the same data value) are stored as a single occurrence of that data value and a count of its consecutive occurrences, rather th ...
, and
Microsoft Video 1 Microsoft Video 1 or MS-CRAM is an early lossy video compression and decompression algorithm (codec) that was released with version 1.0 of Microsoft's Video for Windows in November 1992. It is based on MotiVE, a vector quantization codec which Mi ...
. Some programs, like VLC, complain when the "idx1" index sub-chunk is not found, as it is required for efficient moving among timestamps. They offer to "fix" the file by building an index temporarily or permanently.


Metadata

As a derivative of the
Resource Interchange File Format Resource Interchange File Format (RIFF) is a generic file container format (digital), container format for storing data in tagged Chunk (information), chunks. It is primarily used for audio and video, though it can be used for arbitrary data. T ...
(RIFF), AVI files are commonly tagged with
metadata Metadata (or metainformation) is "data that provides information about other data", but not the content of the data itself, such as the text of a message or the image itself. There are many distinct types of metadata, including: * Descriptive ...
in the INFO chunk. In addition, AVI files can embed
Extensible Metadata Platform The Extensible Metadata Platform (XMP) is an ISO standard, originally created by Adobe Systems Inc., for the creation, processing and interchange of standardized and custom metadata for digital documents and data sets. XMP standardizes a data ...
. By design, any RIFF file can legally include additional chunks of data, each identified by a four-character code; software which does not understand that particular code should skip the chunk. As such, it is theoretically possible to expand any RIFF file format, including AVI, to support almost any conceivable metadata. Some of the limitations of AVI in modern use relate to a lack of standardization in this metadata (see Limitations below).


Limitations

Since its introduction in the early 90s, new computer video techniques have been introduced which the original AVI specification did not anticipate. * The original AVI specification does not provide a standardized way to encode
aspect ratio The aspect ratio of a geometry, geometric shape is the ratio of its sizes in different dimensions. For example, the aspect ratio of a rectangle is the ratio of its longer side to its shorter side—the ratio of width to height, when the rectangl ...
information, although the later OpenDML (AVI 2.0) specification does. Consequently, older players may not select the right aspect ratio automatically (though it may be possible to do so manually). *There are several competing approaches to including a
time code A timecode (alternatively, time code) is a sequence of numeric codes generated at regular intervals by a timing synchronization system. Timecode is used in video production, show control and other applications which require temporal coordinatio ...
in AVI files, which affects usability of the format in film and television post-production, although it is widely used. For WAV audio files, Broadcast Wave (BWF) extensions were designed to standardize post-production metadata, but an equivalent for AVI files has not emerged. Some parties are known to write BWF chunks into AVI for metadata. * AVI was not intended to contain video using any compression technique that requires access to future video frame data beyond the current frame (
B-frame 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. These different algorithms for video frames are called pict ...
). Approaches exist to support modern video compression techniques (such as
MPEG-4 MPEG-4 is a group of international standards for the compression of digital audio and visual data, multimedia systems, and file storage formats. It was originally introduced in late 1998 as a group of audio and video coding formats and related ...
) that rely on this function, although this is beyond the intent of the original specification and may cause problems with playback software which does not anticipate this use. *AVI cannot contain some specific types of
variable bitrate Variable bitrate (VBR) is a term used in telecommunications and computing that relates to the bitrate used in sound or video encoding. As opposed to constant bitrate (CBR), VBR files vary the amount of output data per time segment. VBR allows ...
(VBR) data reliably (such as
MP3 MP3 (formally MPEG-1 Audio Layer III or MPEG-2 Audio Layer III) is a coding format for digital audio developed largely by the Fraunhofer Society in Germany under the lead of Karlheinz Brandenburg. It was designed to greatly reduce the amount ...
audio at sample rates below 32 kHz). *Overhead for AVI files at the resolutions and frame rates normally used to encode standard definition feature films is about 5 MB per hour of video, the significance of which varies with the application. * AVI files cannot contain attachments such as fonts and subtitles. Consequently, subtitles must be distributed in a separate file or hardcoded into the video stream. More recent container formats (such as
Matroska Matroska (styled Matroška) is a project to create a container format that can hold an unlimited number of video, audio, picture, or subtitle tracks in one file. The Matroska Multimedia Container is similar in concept to other containers like ...
,
Ogg Ogg is a digital multimedia container format designed to provide for efficient streaming and manipulation of digital multimedia. It is maintained by the Xiph.Org Foundation and is free and open, unrestricted by software patents. Its name is ...
and
MP4 MP4 (formally MPEG-4 Part 14), is a digital multimedia container format most commonly used to store video and audio, but it can also be used to store other data such as subtitles and still images. Like most modern container formats, it allows ...
) solve all these problems, although software is freely available to both create and correctly replay AVI files which use the techniques described here.


DV AVI

DV AVI is a type of AVI file where the video has been compressed to conform with DV standards. 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 ** Does not waste much space (audio is saved uncompressed, but even uncompressed audio is tiny compared to the video part of DV), but Windows applications based on the VfW
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
do not support it. * Type 2: Like type 1, but audio is also saved as an additional audio stream into the file. ** Supported by VfW applications, at the price of a small increase in file size. Type 1 is actually the newer of the two types. Microsoft made the "type" designations, and decided to name their older VfW-compatible version "Type 2", which only furthered confusion about the two types. 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 Adobe Premiere Pro is a video editing software, video editing Application software, application developed by Adobe Inc. and is distributed as part of the Adobe Creative Cloud suite. It is primarily used for producing high-quality videos across ...
, which only supported Type 2. High-end
FireWire IEEE 1394 is an interface standard for a serial bus for high-speed communications and isochronous real-time data transfer. It was developed in the late 1980s and early 1990s by Apple in cooperation with a number of companies, primarily Sony a ...
controllers usually captured to Type 1 only, while "consumer" level controllers usually captured to Type 2 only. Software is and was available for converting Type 1 AVIs to Type 2, and vice versa, but this is a time-consuming process. Many FireWire controllers only captured to one or the other type. However, almost all relevant software supports both Type 1 and Type 2 editing and rendering, including Adobe Premiere. Thus, many users are unaware of the fact that there are two types of DV AVI files.


See also

*
Comparison of video container formats These tables compare features of multimedia container format (digital), container formats, most often used for storing or streaming digital video or digital audio content. To see which multimedia players support which container format, look at com ...
*
List of video editing software The following is a list of video editing software. The criterion for inclusion in this list is the ability to perform non-linear video editing. Most modern transcoding software supports transcoding a portion of a video clip, which would count as ...


References


External links


John P. McGowan's AVI OverviewMicrosoft's pages on the AVI file formatPVDTools' RIFF-AVI File Format DocumentationDave Wilson's comprehensive list of FourCC codesOpenDML (AVI 2.0) format specificationAVI file format documentation
(pdf)
Type 1 and 2 DV AVI files
{{Compression formats Computer-related introductions in 1992 Digital container formats Microsoft Windows multimedia technology