From: Kai Sikorski on
Hello,

I'm trying to create a movie consisting of I guess a large (800) number of frames. It works fine when I try to make a movie with a subset of about 100 of the frames but when I try for example 200 I get an error saying

??? Error using ==> movie
Java exception occurred:
java.lang.OutOfMemoryError: Java heap space

I went to to the preferences and under the java heap space settings slided the slider all the way to the right but the maximum it allowed me to allocate was 256 mb. Is there any way to raise this maximum or some other way to avoid this error? I guess I could try to create a couple mpegs and then join them in some other software but that seems like it shouldn't be necessary.

I'm using R2010a by the way.

Thanks,
Kajetan Sikorski
From: Yair Altman on
"Kai Sikorski" <sikork(a)rpi.edu> wrote in message <hr5dsj$fo$1(a)fred.mathworks.com>...
> Hello,
>
> I'm trying to create a movie consisting of I guess a large (800) number of frames. It works fine when I try to make a movie with a subset of about 100 of the frames but when I try for example 200 I get an error saying
>
> ??? Error using ==> movie
> Java exception occurred:
> java.lang.OutOfMemoryError: Java heap space
>
> I went to to the preferences and under the java heap space settings slided the slider all the way to the right but the maximum it allowed me to allocate was 256 mb. Is there any way to raise this maximum or some other way to avoid this error? I guess I could try to create a couple mpegs and then join them in some other software but that seems like it shouldn't be necessary.
>
> I'm using R2010a by the way.
>
> Thanks,
> Kajetan Sikorski

Try restarting your PC in safe mode, with minimal number of running apps/services. This should enable you to increase the Java heap size. But a better and more general approach would be to create your movie in smaller chnunks, then simply merge all the chunks together with standard Matlab. You may also try to reduce the resolution or frame rate.

Yair Altman
http://UndocumentedMatlab.com