iOS AVCaptureSession - How to get/set the number of frames per second recorded?

后端 未结 4 1616
梦如初夏
梦如初夏 2021-02-04 05:29

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

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 05:46

    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.

提交回复
热议问题