I'm doing some image processing on several thousand small .avi files. A small subset of the files appear to be damaged.
One type of damage seems to be a particular frame of the video that can't be read in. I added a try-catch block for this and it works well.
Another type of damage, however, is, according to VLC, "Broken or missing AVI Index". When VideoReader attempts to open files with this type of damage it crashes Matlab completely with the error, "MATLAB has encountered an internal problem and needs to close." And details message, "Segmentation violation detected at Wed Apr ..."
So my question is, is there any way to error check/skip videos that would cause this crash?