%% View Codec Associated with Video File
% This example shows how to view the codec associated with a video file, using the mmfileinfo function.
% Store information about the sample video file, shuttle.avi, in a structure array named info. The info structure contains the following fields: Filename, Path, Duration, Audio and Video.

info = mmfileinfo('shuttle.avi');

%
% Show the properties in the command window by displaying the fields of the info structure. For example, to view information under the Video field, type info.Video

info.Video

% The file, shuttle.avi, uses the Motion JPEG codec.
% Copyright 2012 The MathWorks, Inc.