OpenCV 3.0 问题 - 录制视频内存泄漏
Issue with OpenCV 3.0 - Recording Video memory leak
抱歉,对于一个老问题,但我没有找到对我有帮助的东西。我正在使用 OpenCV 3.0 框架开发 iOS 应用程序。
我正在使用 cvVideoCamera delgate 来录制视频,但是当我设置 _cvVideoCam.recordVideo = YES;
时,它总是给我内存警告错误。
如果我设置 cvVideoCam,recordVideo = YES;
,则没有任何内存警告,但输出 url 总是在记录完成时在位置显示 (null)。
提前致谢。
please check your
-(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer.....
for -
withPresentationTime:lastSampleTime] )
{
NSLog(@"Video Writing Error");
}
if (pixelBuffer != nullptr)
CVPixelBufferRelease(pixelBuffer);
}
}
because, in some of earlier version OpenCV forgot to release memory upon each append operation to MPEG4 output. May be its your need.
抱歉,对于一个老问题,但我没有找到对我有帮助的东西。我正在使用 OpenCV 3.0 框架开发 iOS 应用程序。
我正在使用 cvVideoCamera delgate 来录制视频,但是当我设置 _cvVideoCam.recordVideo = YES;
时,它总是给我内存警告错误。
如果我设置 cvVideoCam,recordVideo = YES;
,则没有任何内存警告,但输出 url 总是在记录完成时在位置显示 (null)。
提前致谢。
please check your
-(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer.....
for -
withPresentationTime:lastSampleTime] )
{
NSLog(@"Video Writing Error");
}
if (pixelBuffer != nullptr)
CVPixelBufferRelease(pixelBuffer);
}
}
because, in some of earlier version OpenCV forgot to release memory upon each append operation to MPEG4 output. May be its your need.