retrieves the properties of a video file
VideoStruct = GetVideoStruct(VideoPath);
the name or complete path of a video file, must be a string
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)
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.
global IPD_PATH; VideoStruct = GetVideoStruct(IPD_PATH + 'demos\red-car-video.avi') | ![]() | ![]() |