Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

aviinfo

Information about Audio/Video Interleaved (AVI) file

    Note:   aviinfo will be removed in a future release. Use VideoReader instead.

Syntax

fileinfo = aviinfo(filename)

Description

fileinfo = aviinfo(filename) returns a structure whose fields contain information about the AVI file specified in the character vector 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 is shown below.

Field Name

Description

AudioFormat

Character vector containing the name of the format used to store the audio data, if audio data is present

AudioRate

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

Filename

Character vector specifying the name of the file

FileModDate

Character vector containing the modification date of the file

FileSize

Integer indicating the size of the file in bytes

FramesPerSecond

Integer indicating the desired frames per second

Height

Integer indicating the height of the AVI movie in pixels

ImageType

Character vector indicating the type of image. Either 'truecolor' for a truecolor (RGB) image, or 'indexed' for an indexed image.

NumAudioChannels

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

NumFrames

Integer indicating the total number of frames in the movie

NumColormapEntries

Integer specifying the number of colormap entries. For a truecolor image, this value is 0 (zero).

Quality

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 can be inaccurate.

VideoCompression

Character vector 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 the four-character code that identifies the compressor.

Width

Integer indicating the width of the AVI movie in pixels

Introduced before R2006a

Was this topic helpful?