%% Check if File Format is Supported
% Check whether VideoReader can read AVI files on the current system.

fmtList = VideoReader.getFileFormats();

if any(ismember({fmtList.Extension},'avi'))
     disp('VideoReader can read AVI files on this system.');
else
     disp('VideoReader cannot read AVI files on this system.');
end

% Copyright 2015 The MathWorks, Inc.