Audio Video Interleave

Audio Video InterleaveFilename extension| ``.avi``

|

Internet media type| `video/vnd.avi[1]
video/avi
video/msvideo
video/x-msvideo`
Type code| 'Vfw '
Uniform Type Identifier (UTI)| public.avi
Developed by| Microsoft
Initial release| November 10, 1992; 33 years ago (1992-11-10)
Type of format| Container format
Container for| Audio, video
Extended from| Resource Interchange File Format
Open format?| Yes[2]
Website| docs.microsoft.com/windows/win32/directshow/avi-file-format

Audio Video Interleave (also Audio Video Interleaved and known by its initials and filename extension AVI, usually pronounced /ˌeɪ.viːˈaɪ/[3]) is a proprietary multimedia container format and Windows standard[4] introduced by Microsoft in November 1992 as part of its Video for Windows software. AVI files can contain both audio and video data in an uncompressed file container that allows synchronous audio-with-video playback.[5]

Like the DVD video format, AVI files support multiple streaming audio and video, although these features are seldom used. A codec popularly used for AVI is MPEG-4 ASP, usually encoded by DivX or Xvid, although many other codecs can also be contained in an AVI file.[6][7]

Many AVI files use the file format extensions developed by the Matrox OpenDML group in February 1996.[8] These files are supported by Microsoft, and are unofficially called AVI 2.0.[9] In 2010 the US government's National Archives and Records Administration defined AVI as the official wrapper for preserving digital video.[10]

## Contents

* 1 History
* 2 Format
* 3 Metadata
* 4 Limitations
* 5 DV AVI
* 6 See also
* 7 References
* 8 External links

## History

Publishers faced a predicament regarding how they should distribute videos on CD-ROMs. Thirty seconds of video displayed in 24-bit color and at thirty frames per second and Super VGA resolutions could take up 680 megabytes 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.[11]

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 codecs to satisfy those users.[11][12][13]

## Format

AVI is a subformat 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.[14]

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.[14]

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, 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, run-length encoding, and Microsoft Video 1.[13]

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.[15]

## Metadata

As a derivative of the Resource Interchange File Format (RIFF), AVI files are commonly tagged with metadata in the INFO chunk. In addition, AVI files can embed Extensible Metadata Platform.[16] By design, any RIFF file can legally include additional chunks of data, each identified by a four-character code;[14] 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 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).[17]
* There are several competing approaches to including a time code in AVI files, which affects usability of the format in film and television post-production, although it is widely used.[18] 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.[19]
* 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). Approaches exist to support modern video compression techniques (such as MPEG-4) 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.[20]
* AVI cannot contain some specific types of variable bitrate (VBR) data reliably (such as MP3 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, Ogg and MP4) 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 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, which only supported Type 2. High-end FireWire 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
* List of video editing software

## References

1. ↑ Fleischman, Eric (June 1998), WAVE and AVI Codec Registries, IETF, doi:10.17487/RFC2361, RFC 2361, https://tools.ietf.org/html/rfc2361, retrieved 2009-12-06
2. ↑ AVI (Audio Video Interleaved) File Format (Full draft). Sustainability of Digital Formats. Washington, D.C.: Library of Congress. 9 March 2016. Retrieved 13 December 2021.
3. ↑ Cudnik, Brian (2009). Lunar Meteoroid Impacts and How to Observe Them. Springer. p. 154. ISBN 978-1-4419-0324-2. https://books.google.com/books?id=Aos6JtSx3-8C&pg=PA154. Retrieved 2021-09-19.
4. ↑ Gavin, Brady (2018-09-12). "What Is an AVI File (and How Do I Open One)?". How-To Geek. https://www.howtogeek.com/365627/what-is-an-avi-file-and-how-do-i-open-one/.
5. ↑ "CyberLink Support Center". https://www.cyberlink.com/support-center/faq/content?id=1429.
6. ↑ What is audio video interleave (AVI)?
7. ↑ "AVI: Audio Video Interleave". https://www.videoexpertsgroup.com/glossary/avi.
8. ↑ "AVI File Format with OpenDML Extensions, Version 1.02". 2016-03-09. https://www.loc.gov/preservation/digital/formats/fdd/fdd000442.shtml.
9. ↑ stevewhims. "AVI RIFF File Reference - Windows applications" (in en-us). https://docs.microsoft.com/en-us/windows/win32/directshow/avi-riff-file-reference.
10. ↑ "Video Digital Product Options". https://www.archives.gov/preservation/products/definitions/video-opt.html.
11. ↑ 11.0 11.1 Raskin, Robin (1992-12-22). "27 Good Reasons To Buy A CD-ROM Player". PC Magazine 11 (22): 345–346. https://books.google.com/books?id=v9TVJ_G_sk8C&pg=PA345. Retrieved 2021-09-19.
12. ↑ Damore, Kelley; Corcoran, Cate (1992-11-09). "Microsoft, vendors team up to air Video for Windows". InfoWorld 14 (45): 3. https://books.google.com/books?id=KlEEAAAAMBAJ&pg=PA3. Retrieved 2021-09-19.
13. ↑ 13.0 13.1 Quain, John R. (1993-01-12). "Microsoft Goes Hollywood With Video for Windows". PC Magazine 12 (1): 39. https://books.google.com/books?id=LIyy_CtozLcC&pg=PA39. Retrieved 2021-09-19.
14. ↑ 14.0 14.1 14.2 Gloe, Thomas (2014-04-16). "Forensic analysis of video file formats § AVI Container format". Digital Investigation (Elsevier) 11 (1). doi:10.1016/j.diin.2014.03.009. ISSN 1742-2876.
15. ↑ "WindowsFAQ-1.1.x". https://wiki.videolan.org/WindowsFAQ-1.1.x#Can_I_fix_those_broken_AVI_files_permanently.3F.
16. ↑ Altheide, Cory; Carley, Harvan (2011). Digital Forensics with Open Source Tools. Syngress. p. 190. ISBN 978-1-59749-586-8. https://books.google.com/books?id=J8h8VWUmDuYC&pg=PA190. Retrieved 2021-09-19.
17. ↑ "Determining the Shape of Pixels and Frames". May 2003. http://www.microsoft.com/windows/windowsmedia/howto/articles/PixelFrames.aspx.
18. ↑ Rhodes, Phil (December 12, 2014). "AVI and Timecode". FFmpeg-user (Mailing list).
19. ↑ "AVI MetaEdit - Technical Metadata". https://mediaarea.net/AVIMetaEdit/tech_view_help.
20. ↑ "Using B-frames". https://www.avidemux.org/admWiki/doku.php?id=using:b-frames.

## External links

* John P. McGowan's AVI Overview
* Microsoft's pages on the AVI file format
* PVDTools' RIFF-AVI File Format Documentation
* Dave Wilson's comprehensive list of FourCC codes
* OpenDML (AVI 2.0) format specification
* AVI file format documentation (pdf)
* Type 1 and 2 DV AVI files
* AVI file Structure

* v
* t
* e

Multimedia compression and container formats

Video
compression|

| ISO, IEC, MPEG|

* MJPEG
* Motion JPEG 2000
* MPEG-1
* MPEG-2
* Part 2
* MPEG-4
* Part 2 / ASP
* Part 10 / AVC
* MPEG-H
* Part 2 / HEVC
* MPEG-I
* Part 3 / VVC

|

ITU-T, VCEG|

* H.120
* DCT
* H.261
* H.262
* H.263
* H.264 / AVC
* H.265 / HEVC
* H.266 / VVC
* DV

SMPTE|

* VC-1
* VC-2
* VC-3
* VC-5

TrueMotion|

* TrueMotion S
* DCT
* VP3
* VP6
* VP7
* VP8
* VP9
* AV1

Others|

* Apple Video
* AVS
* Bink
* Cinepak
* Daala
* DVI
* EVC
* FFV1
* Huffyuv
* Indeo
* Lagarith
* Microsoft Video 1
* MSU Lossless
* OMS Video
* Pixlet
* ProRes 422
* ProRes 4444
* QuickTime
* Animation
* Graphics
* RealVideo
* RTVideo
* SheerVideo
* Smacker
* Sorenson Video/Spark
* Theora
* Thor
* WMV
* XEB
* YULS

Audio
compression|

| ISO, IEC, MPEG|

* MPEG-1 Layer II
* Multichannel
* MPEG-1 Layer I
* MPEG-1 Layer III (MP3)
* AAC
* HE-AAC
* AAC-LD
* MPEG Surround
* MPEG-4 ALS
* MPEG-4 SLS
* MPEG-4 DST
* MPEG-4 HVXC
* MPEG-4 CELP
* MPEG-D USAC
* MPEG-H 3D Audio

|

ITU-T|

* G.711
* A-law
* µ-law
* G.718
* G.719
* G.722
* G.722.1
* G.722.2
* G.723
* G.723.1
* G.726
* G.728
* G.729
* G.729.1

IETF|

* Opus
* iLBC
* Speex
* Vorbis

3GPP|

* AMR
* AMR-WB
* AMR-WB+
* EVRC
* EVRC-B
* EVS
* GSM-HR
* GSM-FR
* GSM-EFR

ETSI|

* AC-3
* AC-4
* DTS

Others|

* ACELP
* ALAC
* Asao
* ATRAC
* AVS
* CELT
* Codec 2
* DRA
* FLAC
* iSAC
* Monkey's Audio
* TTA
* True Audio
* MT9
* Musepack
* OptimFROG
* OSQ
* QCELP
* RCELP
* RealAudio
* RTAudio
* SD2
* SHN
* SILK
* Siren
* SMV
* SVOPC
* TwinVQ
* VMR-WB
* VSELP
* WavPack
* WMA
* MQA
* aptX
* aptX HD
* aptX Low Latency
* aptX Adaptive
* LDAC
* LHDC
* LLAC

Image
compression|

| IEC, ISO,
IETF, W3C,
ITU-T, JPEG|

* CCITT Group 4
* DCT
* HEIF
* HEVC
* JPEG
* JPEG XR
* JPEG XT
* TIFF/EP
* Arithmetic
* JBIG
* JBIG2
* JPEG-LS
* JPEG 2000
* LZ
* GIF
* PNG
* TIFF
* TIFF/IT

|

Others|

* APNG
* BPG
* DjVu
* EXR
* FLIF
* ICER
* MNG
* PGF
* QTVR
* WBMP
* WebP

Containers|

| ISO, IEC|

* MPEG-ES
* MPEG-PES
* MPEG-PS
* MPEG-TS
* ISO base media file format
* MPEG-4 Part 14 (MP4)
* Motion JPEG 2000
* MPEG-21 Part 9
* MPEG media transport

|

ITU-T|

* H.222.0
* T.802

IETF|

* RTP
* Ogg

SMPTE|

* GXF
* MXF

Others|

* 3GP and 3G2
* AMV
* ASF
* AIFF
* AVI
* AU
* BPG
* Bink
* Smacker
* BMP
* DivX Media Format
* EVO
* Flash Video
* IFF
* M2TS
* Matroska
* WebM
* QuickTime File Format
* RatDVD
* RealMedia
* RIFF
* WAV
* MOD and TOD
* VOB, IFO and BUP

Collaborations|

* NETVC
* MPEG LA
* HEVC Advance

Methods|

* Discrete cosine transform
* DCT
* MDCT
* Entropy
* Arithmetic
* Huffman
* Modified
* FFT
* LPC
* ACELP
* CELP
* LSP
* WLPC
* Lossless
* Lossy
* LZ
* DEFLATE
* LZW
* PCM
* A-law
* µ-law
* ADPCM
* DPCM
* Transform
* Wavelet
* Daubechies
* DWT
* Transform

Lists|

* Comparison of audio coding formats
* Comparison of video codecs
* List of codecs

See Compression methods for techniques and Compression software for codecs

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Audio Video Interleave. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Audio_Video_Interleave&oldid=3986563"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template