User`s guide
DiskLogger
18-9
clear vidobj
Using an AVI File
Create and configure an AVI file object.
file = avifile('logfile.avi');
file.Quality = 50;
Create and configure a video input object.
vid = videoinput('winvideo', 1);
vid.LoggingMode = 'disk&memory';
vid.DiskLogger = file;
Start logging data to disk.
start(vid)
To ensure that the logged data is written to the disk file, close the AVI file. As an
argument to the close function, specify the value of the video input object DiskLogger
property, vid.DiskLogger, to reference the AVI file object, not the original variable,
file, returned by the avifile function.
file = close(vid.DiskLogger);