MATLAB Function Reference    
aviinfo

Return information about an Audio Video Interleaved (AVI) file

Syntax

Description

fileinfo = aviinfo(filename) returns a structure whose fields contain information about the AVI file specified in the string, filename. If filename does not include an extension, then .avi is used. The file must be in the current working directory or in a directory on the MATLAB path.

The set of fields in the fileinfo structure are shown below.

Field Name
Description
AudioFormat

A string containing the name of the format used to store the audio data, if audio data is present

AudioRate

An integer indicating the sample rate in Hertz of the audio stream, if audio data is present

Filename
A string specifying the name of the file
FileModDate
A string containing the modification date of the file
FileSize
An integer indicating the size of the file in bytes
FramesPerSecond
An integer indicating the desired frames per second
Height
An integer indicating the height of the AVI movie in pixels
ImageType
A string indicating the type of image. Either 'truecolor' for a truecolor (RGB) image, or 'indexed' for an indexed image.
NumAudioChannels

An integer indicating the number of channels in the audio stream, if audio data is present

NumFrames
An integer indicating the total number of frames in the movie
NumColormapEntries

An integer specifying the number of colormap entries

Quality

A number between 0 and 100 indicating the video quality in the AVI file. Higher quality numbers indicate higher video quality; lower quality numbers indicate lower video quality. This value is not always set in AVI files and therefore may be inaccurate.

VideoCompression

A string containing the compressor used to compress the AVI file. If the compressor is not Microsoft Video 1, Run Length Encoding (RLE), Cinepak, or Intel Indeo, aviinfo returns a four-character code.

Width
An integer indicating the width of the AVI movie in pixels

See also

avifile, aviread


 avifile aviread