I've set up a captureSession and am now trying to set the framerate to 60. I am using an iPhone 12 Pro Max.
I am trying to set the frame rate with:
videoDevice?.activeVideoMinFrameDuration = CMTimeMake(value: 1, timescale: 60)
However, printing my .activeFormat tells me my iPhone only supports 30 fps.
I need 60 fps to match the frame rate of my machine learning model.
Configuration:
- builtinwideanglecamera,
- video,
- back position,
- landscape right orientation.
I do not have any cameras in this enum that allow me more than 30 fps. I create the videoDevice object therefore with:
let videoDevice = AVCaptureDevice.default(.builtInWideAngleCamera,
for: .video,
position: .back)
What am I doing wrong?
Thanks