Avi-Audio Video Interleave

Audio-Video Interleaved, known by its acronym AVI, is a multimedia container format introduced by Microsoft in November 1992 as part of its Video for Windows technology. AVI files can contain both audio and video data in a standard container that allows synchronous audio-with-video playback. Like DVDs, 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 OpenDML group in February 1996. These files are supported by Microsoft, and are unofficially called "AVI 2.0".

AVI is a special case of the Resource Interchange File Format (RIFF), which divides a file's data into blocks, or "chunks." Each "chunk" is identified by a FourCC 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 entire structure of a RIFF file was copied from an earlier IFF format devised by Electronic Arts in the mid-1980s[citation needed], the primary difference being the "endianness" of integers. In fact, even a properly written IFF parser for the now old-aged AmigaOS, (after correcting for endianness) will parse RIFF files.

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. 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 physical addresses [within the file] of the data chunks.

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, 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), Cinepak, Motion JPEG, Editable MPEG, VDOWave, ClearVideo / RealVideo, QPEG, MPEG-4 Video, et al.

AVI is considered by some to be an outdated container format. There is significant overhead when used with popular MPEG-4 codecs (Xvid and DivX, for example), increasing file size more than seemingly necessary. Also the container has no native support for modern MPEG-4 features like B-Frames. To circumvent this problem, cumbersome (in terms of programming) hacks are sometimes used, likely causing incompatibilities with some players. Hacks are also used to implement language subtitles (which are an increasingly important aspect of reduced-size video packages typical of .avi and similar formats). The highly-efficient H.264 codecs employed in .AVIs use even more compression "tricks", and are thus even more ill-suited to the format; this is particularly true of H.264 Main Profile (MP) and High Profile (HiP) codecs.

Despite its limitations and the availability of more modern container formats (see Matroska, Ogg and MP4), AVI remains popular among file-sharing communities. This is probably due to its high compatibility with existing video editing and playback software like VirtualDub and Windows Media Player. The tendency has been to install DirectShow filters like ffdshow to augment DirectShow, using AVI as a common-ground, lowest-common-denominator format. Ironically, while the codec/container incompatibilities mentioned in the above paragraph have undermined AVI's near-ubiquity, the obscurity and tech-savviness of those involved in the file-sharing groups has rendered this irrelevant.

Projects based on the FFmpeg project, including MPlayer, xine, and VLC Media Player, have rendered most problems with viewing AVI format video files irrelevant, regardless of internal format or codec needed, due to FFmpeg's high compatibility.

In June 2005, DivX, Inc. 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) and so far, has gained no perceivable traction in file-sharing communities where the DivX codec was once popular (the Xvid codec has instead become the codec of choice among most of the piracy groups).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值