HJImagesToVideo icon indicating copy to clipboard operation
HJImagesToVideo copied to clipboard

Memory problem

Open FaisalAlneela opened this issue 10 years ago • 2 comments

Hello i have used your app and i have a memory problems the app crash when the number of images is over 100 image... is there a solution for this problem?? i don't want to be controlled with limited number of images.. is there another way to make video from images??

FaisalAlneela avatar Aug 13 '14 20:08 FaisalAlneela

Indeed, it has the memory leak in CVPixelBufferCreate() method, the memory seems can't release the buffer you create, and when u try a few more times converting or the images are too much, it crashes. Hope fix this problem, or any suggestion for images to video solution for batch images?

leebeet avatar Dec 04 '15 04:12 leebeet

You need to replace

return [adaptor appendPixelBuffer:buffer withPresentationTime:presentTime];

by

BOOL isAppend = [adaptor appendPixelBuffer:buffer withPresentationTime:presentTime];
CVPixelBufferRelease(buffer);
return isAppend;

fedorchukov avatar Dec 21 '17 13:12 fedorchukov