ciatah icon indicating copy to clipboard operation
ciatah copied to clipboard

issue loading AVI -> variable does not support dot indexing (solved)

Open dprotter opened this issue 2 years ago • 2 comments

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);

dprotter avatar Feb 06 '23 23:02 dprotter

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.

bahanonu avatar Feb 07 '23 00:02 bahanonu

Ah, interesting, good to know!

dprotter avatar Feb 07 '23 16:02 dprotter