Why do I receive the error “Failed to open file” when I read an AVI file using AVIREAD command on MATLAB 7.8 (R2009a)?
I have an image processing program that I have written that has worked fine for the last 6-8 months, and suddenly last week it stopped working. I have tracked the problem down to AVI file handling. I can no longer open them. I have tried rebooting the machine and reinstalling MATLAB. But nothing seems to work. I have ensured that I have permissions to read and write on the file as well as the directory in which the file resides. Using the following commands, I get the following errors, it happens for any filename, whether the file has been used before or not:
>> clear all
>> clear mex
>> test = avifile(‘avitest.avi’)
ERROR: ??? Error using ==> avi
Failed to open file.
Error in ==> avifile.avifile at 173
aviobj.FileHandle = avi(‘open’,filename);
>> mov=aviread(‘Filename.avi’)
ERROR: ??? Error using ==> aviread at 76
Unable to open file.I have an image processing program that I have written that has worked fine for the last 6-8 months, and suddenly last week it stopped working. I have tracked the problem down to AVI file handling. I can no longer open them. I have tried rebooting the machine and reinstalling MATLAB. But nothing seems to work. I have ensured that I have permissions to read and write on the file as well as the directory in which the file resides. Using the following commands, I get the following errors, it happens for any filename, whether the file has been used before or not:
>> clear all
>> clear mex
>> test = avifile(‘avitest.avi’)
ERROR: ??? Error using ==> avi
Failed to open file.
Error in ==> avifile.avifile at 173
aviobj.FileHandle = avi(‘open’,filename);
>> mov=aviread(‘Filename.avi’)
ERROR: ??? Error using ==> aviread at 76
Unable to open file. I have an image processing program that I have written that has worked fine for the last 6-8 months, and suddenly last week it stopped working. I have tracked the problem down to AVI file handling. I can no longer open them. I have tried rebooting the machine and reinstalling MATLAB. But nothing seems to work. I have ensured that I have permissions to read and write on the file as well as the directory in which the file resides. Using the following commands, I get the following errors, it happens for any filename, whether the file has been used before or not:
>> clear all
>> clear mex
>> test = avifile(‘avitest.avi’)
ERROR: ??? Error using ==> avi
Failed to open file.
Error in ==> avifile.avifile at 173
aviobj.FileHandle = avi(‘open’,filename);
>> mov=aviread(‘Filename.avi’)
ERROR: ??? Error using ==> aviread at 76
Unable to open file. MATLAB Answers — New Questions