Size limit on 'file' argument of implay(file)?
2 views (last 30 days)
Show older comments
Hey all,
So I have Matlab 7.7.0 R2008b and one of my recent projects is to make an animation for a bunch of figures that I generate. I use avifile and addframe in a for loop to make a .avi file and update it constantly to have each frame represent the newly updated figures that appear. The loop goes from 1:5512, so quite a few figures are generated.
I do all this because I want to use the play/pause features of the implay() function. The generated .avi file is 31,637KB, or 30.8MB.
BUT when I eventually call implay('vid2.avi'), it gives an error. "Details of error: Initialization failed. (Ran out of memory)".
I am assuming this is because the file I'm trying to play is too large? Is there a size limit on the implay function? Could this be fixed if I maybe had the newest version of Matlab? Thanks in advance.
NathanF
0 Comments
Accepted Answer
Sean de Wolski
on 18 Jul 2011
There is no limit that I know about. How much RAM do you have/what size system (32bit or 64bit OS) are you on? Do you have a whole bunch of large variables stored in your workspace?
2 Comments
Walter Roberson
on 18 Jul 2011
Also, what size is each frame, how many bits per pixel, and what data representation (e.g., uint8 or uint16) ? implay() might be attempting to create an uncompressed in-memory copy of the entire .avi file.
More Answers (0)
See Also
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!