MATLAB: “Out of memory” error.

memoryvideo processing

I use the routine matlab to convert videos, MOV to AVI format and for my system identify the 240 frames per second. When I use the routine to convert small videos (200 MB), I have not problems, but I need also of convert large videos (2GB), but the memory laptop is no enough. Anyone know how I limit the used memory of my matlab?
If you need my routine, I publish here. Thanks.

Best Answer

You don't need to read the whole movie into memory at once. Are you using the VideoReader class and read()?