In GPUImageVideoCamera.h you definition of a video frame rate parameters, when I set this parameter is greater than 60 error occurs when, and in the iPhone is 120fps and 240fps support. I also defines the interface to a set of frame rate, every time after setting the 120fps or 240fps save video, using video playback software to display only 60 FPS parameters, which is why Nigeria, whether it is GPUImage itself does not support 120fps or 240fps.
In GPUImageVideoCamera.h you definition of a video frame rate parameters, when I set this parameter is greater than 60 error occurs when, and in the iPhone is 120fps and 240fps support. I also defines the interface to a set of frame rate, every time after setting the 120fps or 240fps save video, using video playback software to display only 60 FPS parameters, which is why Nigeria, whether it is GPUImage itself does not support 120fps or 240fps.
(void)switchFormatWithDesiredFPS:(CGFloat)desiredFPS { NSLog(@"ff %@", self.camera.inputCamera.activeFormat); BOOL isRunning = self.captureSession.isRunning;
if (isRunning) [self.captureSession stopRunning];
AVCaptureDeviceFormat selectedFormat = nil; AVFrameRateRange frameRateRange = nil;
for (AVCaptureDeviceFormat *format in [_inputCamera formats]) {
}
if (selectedFormat) {
}
if (isRunning) [self.captureSession startRunning]; }