Clear Filters
Clear Filters

Incorrect Chunk Size?

4 views (last 30 days)
James Bond
James Bond on 15 Feb 2011
Hey, I'm trying to open an avi (I've tried .mov and .mpeg too) video using the implay function with my 64 bit 2010 MATLAB but I keep receiving the following error:
Error while attempting to read file:
Hey.avi
Details of error:
Incorrect chunk size information in AVI file
When I ran the following code with a demo video in MATLAB it worked fine.
obj=('xylophone.mpg')
obj =
xylophone.mpg
>> implay(obj)
But the trouble starts when I do the same thing with my own video:
obj2=('hey.avi')
obj2 =
hey.avi
>> implay('obj2')
??? Error using ==> ScopeCLI>ScopeCLI.checkSource at 63
File 'obj2' not found.
Error in ==> uiscopes.Framework.Framework at 15
checkSource(hScopeCfg.ScopeCLI);
Error in ==> uiscopes.new at 22
hScope = uiscopes.Framework(hScopeCfg, varargin{:});
Error in ==> implay at 55
obj = uiscopes.new(hScopeCfg);
I'm not sure what the problem here is. My video isn't too big because the same error occurs with shorter videos, could their be a 64-bit - 32-bit problem? Any help here would be appreciated. Thank you!

Answers (1)

Andreas Goser
Andreas Goser on 15 Feb 2011
I know this "incorrect chunk size" message from an earlier version. To that time, the behavior occured when the avi files were malformed.
Can you try the MMREADER command instead of AVIREAD?

Categories

Find more on File Operations in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!