Name

GetVideoStruct — retrieves the properties of a video file

Calling Sequence

VideoInfo = GetVideoInfo(VideoPath);

Parameters

VideoPath

the name or complete path of a video file, must be a string

VideoInfo

struct with the following components:

  • Codec: name of the codec

  • NumberOfFrames: the number of frames in the video file

  • FrameRate: number of frames taken per second during recording

  • Width: number of columns of a frame

  • Height: number of rows of a frame

  • IsColor: spefies whether the video is color (%t) or gray scale (%f)

Description

This function retrieves the codec, number of frames, frame rate, number of columns and rows of the frames and whether the video is color or gray scale.

Examples

VideoInfo = GetVideoInfo('contrib\IPD-5.0\demos\red-car-video.avi')

See Also

OpenVideoFile, ReadImage, CloseVideoFile, GetVideoInfo, ReadImageFromVideo