To set the value, you can use the AVCaptureConnection videoMinFrameDuration accessor.
See AVCaptureConnection Documentation
Consider the output be AVCaptureVideoDataOutput .
AVCaptureConnection *conn = [output connectionWithMediaType:AVMediaTypeVideo]; if (conn.isVideoMinFrameDurationSupported) conn.videoMinFrameDuration = CMTimeMake(1, CAPTURE_FRAMES_PER_SECOND); if (conn.isVideoMaxFrameDurationSupported) conn.videoMaxFrameDuration = CMTimeMake(1, CAPTURE_FRAMES_PER_SECOND);
For more information, see my answer in this SO question
Ilanchezhian
source share