Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You are storing in memory more vectors of images. No wonder your computer tells you there is no more memory. The solution is not to store the images.

Please keep in mind that a decompressed image/video is way larger than a compressed one. A usual 720p video one minute long needs 4.7GB of memory when decompressed.

So change your algorithm to use only a few frames at once, then release them correctly.