ciatah
ciatah copied to clipboard
issue loading AVI -> variable does not support dot indexing (solved)
Line 415 in ciapkg.io.loadMovieList.m seems to have an extra line that needs to be commented out in the AVI case, or else AVIs will fail to load correctly. I commented out that line and everything ran smoothly.
case 'avi'
xyloObj = VideoReader(thisMoviePath);
dims.x(iMovie) = xyloObj.Height;
dims.y(iMovie) = xyloObj.Width;
dims.z(iMovie) = xyloObj.NumberOfFrames;
dims.one(iMovie) = xyloObj.Height;
dims.two(iMovie) = xyloObj.Width;
dims.three(iMovie) = xyloObj.NumberOfFrames;
tmpFrame = read(xyloObj, 1, 'native');
> %tmpFrame = tmpFrame.cdata;
%tmpFrame = readFrame(xyloObj);
Thanks, I had already added a work-around internally for this (e.g. for color and other AVIs) since just commenting out that line as is will lead to errors in other AVIs.
I'll push an minor update to the public repo today.
Ah, interesting, good to know!