From: Ace Gerrard on
Hi guys

I have a little problem and i hope you can hlp me out big time as i am a beginner in matlab. I am trying to read a video in mathlab. I have done the a=aviread('movie'). the movie is saved in the directory. but i keep getting this message.

??? Error using ==> audiovideo\private\findchunk at 19
Incorrect chunk size information in AVI file.

Error in ==> aviinfo at 90
[chunk, msg] = findchunk(fid,'RIFF');

Error in ==> aviread at 49
info = aviinfo(filename,'Robust');

Can anyone pls explain what this means and how to over come this problem. The video is going to be used for shadow removal.

thank you very much in advance
From: Walter Roberson on
Ace Gerrard wrote:

> I have a little problem and i hope you can hlp me out big time as i am a
> beginner in matlab. I am trying to read a video in mathlab. I have done
> the a=aviread('movie'). the movie is saved in the directory. but i keep
> getting this message.
>
> ??? Error using ==> audiovideo\private\findchunk at 19
> Incorrect chunk size information in AVI file.
>
> Error in ==> aviinfo at 90
> [chunk, msg] = findchunk(fid,'RIFF');

It appears that Matlab thinks the AVI file is corrupted. Please try
again with a different AVI and see if you get the same thing.

If you are able to play the file without difficulty with (say) Windows
Media Player, then you have hope that if you were to take the AVI file
and read it in with a movie editor and re-save it, that the resulting
file would be understandable to Matlab.