I'm new to AVCaptureSession and wish to better understand how to work with it. So I managed capturing the video stream as separated CIImages and convert them to UIImages. Now I wish to be able to get the number of Frames Per Second captured and preferably to be able to set it.
Any idea how to do that?
AVCaptureConnection's videoMinFrameDuration
is deprecated.
You can use AVCaptureDevice
properties to detect supported video frame rate ranges and can assign minimum and maximum frame rates using properties.
device.activeFormat.videoSupportedFrameRateRanges
return all video frame rates ranges supported by device.
device.activeVideoMinFrameDuration
and device.activeVideoMaxFrameDuration
can be used for specifying frame durations.