Senin, 18 Maret 2019

iOS AVCaptureVideoDataOutput cost too much memory

I am using AVFoundation framework to capture video with iPhone camera, my codes:


self.session = [[AVCaptureSession alloc] init];
...
self.output = [[AVCaptureVideoDataOutput alloc] init];
[self.session addOutput:self.output];

Before [session addOutput], everything goes well, memory is limited to 3M, but after [session addOutput], memory usage increase 0.06M per second, after some minutes, the App will crash because of memory warning. AVCaptureVideoDataOutput seems cost too much memory, and maybe have a memory leak issue.

So how can i to reduce the memory usage?

iOS version: 7.1.1



from iOS AVCaptureVideoDataOutput cost too much memory

iOS AVCaptureVideoDataOutput cost too much memory Rating: 4.5 Diposkan Oleh: Admin

0 komentar:

Posting Komentar

Popular Posts