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).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Interleave是一种数据处理方法,可以将现有数据集中的每个元素进行处理,并生成新的结果。它可以用于合并多个数据集,也可以用于对单个数据集进行处理。Interleave的具体操作是遍历数据集中的每个元素,根据指定的处理函数对元素进行处理,然后将处理结果合并成新的数据集。 引用中提到了关于内存交叉存取技术的使用interleave的例子,这是一种加快内存速度的技术。它通过将存储体的奇数地址和偶数地址部分分开,可以实现在刷新当前字节时不影响下一个字节的访问。这里的interleave是在硬件层面上的一种技术,与上述提到的数据处理方法中的interleave有所不同。 在TensorFlow中,tf.data.Dataset.interleave()是一个通用的数据处理方法,可以看作是flat_map的一种泛化方法。通过设置参数,可以实现并行处理多个元素,将处理结果按照指定的规则合并成新的数据集。 总结来说,interleave是一种数据处理方法,可以用于合并多个数据集或对单个数据集进行处理。在不同领域中,interleave有不同的具体使用方式,比如在硬件层面上的内存交叉存取技术,以及在TensorFlow中的数据处理方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [存储器术语interleave解释](https://blog.csdn.net/jiankun_wang/article/details/3552224)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [tensorflow dataset基础之——dataset api的使用](https://blog.csdn.net/zhao_crystal/article/details/122159163)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值