I am trying to reduce the video capture frame rate for my application, as I find that it affects the performance of VoiceOver.
Currently, it captures frames from a video camera, and then processes frames using OpenGL routines as quickly as possible. I would like to set a specific frame rate during the capture process.
I expected that I could do this using videoMinFrameDuration or minFrameDuration, but that does not seem to make any difference to performance. Any ideas?
NSArray *devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo]; for (AVCaptureDevice *device in devices) { if ([device position] == AVCaptureDevicePositionBack) { backFacingCamera = device;
Any ideas? Am I missing something? Is this the best way to throttle?
AVCaptureConnection *conn = [videoOutput connectionWithMediaType:AVMediaTypeVideo]; if (conn.supportsVideoMinFrameDuration) conn.videoMinFrameDuration = CMTimeMake(1,2); else videoOutput.minFrameDuration = CMTimeMake(1,2);
source share