Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dprotter opened this issue Feb 6, 2023 · 2 comments
Open

Comments

@dprotter
Copy link

dprotter commented Feb 6, 2023

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);
@bahanonu
Copy link
Owner

bahanonu commented Feb 7, 2023

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.

@dprotter
Copy link
Author

dprotter commented Feb 7, 2023

Ah, interesting, good to know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants