%% Create VideoReader Object and Read Video
% Create a VideoReader object for the example movie file xylophone.mp4.

v = VideoReader('xylophone.mp4');

%
% Read all the frames from the video, one frame at a time.

while hasFrame(v)
    frame = readFrame(v);
end

% Display information about the last frame returned by readFrame.

whos frame

% Copyright 2015 The MathWorks, Inc.