MATLAB Function Reference Previous page   Next Page
mmfileinfo

Return information about multimedia file

Syntax

Description

info = mmfileinfo(filename) returns a structure, info, whose fields contain information about the contents of the multimedia file identified by the string filename.

If filename is a URL, mmfileinfo might take a long time to return because it must first download the file. For large files, downloading can take several minutes. To avoid blocking the MATLAB command line while this processing takes place, download the file before calling mmfileinfo.

The info structure contains the following fields, listed in the order they appear in the structure.

Field
Description
Filename
String indicating the name of the file
Duration
Length of the file in seconds
Audio
Structure containing information about the audio data in the file. See Audio Data for more information about this data structure.
Video
Structure containing information about the video data in the file. See Video Data for more information about this data structure.

Audio Data

The Audio structure contains the following fields, listed in the order they appear in the structure. If the file does not contain audio data, the fields in the structure are empty.

Field
Description
Format
Text string, indicating the audio format
NumberOfChannels
Number of audio channels

Video Data

The Video structure contains the following fields, listed in the order they appear in the structure.

Field
Description
Format
Text string, indicating the video format
Height
Height of the video frame
Width
Width of the video frame

Examples

This example gets information about the contents of a file containing audio data.

To look at the information returned about the audio data in the file, examine the fields in the Audio structure.

Because the file contains only audio data, the fields in the Video structure are empty.


Previous page  mlock mod Next page

© 1994-2005 The MathWorks, Inc.