I developed a camera app with AVFoundation framework where long frame duration is required. When I set the following setting,
camera.activeVideoMinFrameDuration = CMTimeMake(value: 1, timescale: 2)
camera.activeVideoMaxFrameDuration = CMTimeMake(value: 1, timescale: 2)
it takes several seconds to show up camera preview.
Recently I learned that iPhone uses "Rolling Shutter" and I guess this may cause this delay.
Is my guess correct?
In addition, if I set timescale: 1
, then captureOutput(_:didOutput:from:)
is not called at all.
Why?
I am using the latest model iPhone 13 pro and this has a capability of 1 - 60 fps range.
Please advise me if anyone knows further details.