简体   繁体   English

在iOS上捕获60fps帧以减少运动模糊

[英]Capture 60fps on iOS to reduce motion blur

I need to reduce motion blur in my video, so I tried every sessionPreset on AVCaptureSession to get 60fps video capture but none of them seem to work. 我需要减少视频中的运动模糊,因此我尝试在AVCaptureSession执行每个sessionPreset以获得60fps的视频捕获,但是它们似乎都不起作用。 I found a few old threads that mention the 1280 preset would work on iOS 5, but I had no success with any preset on iOS 10 (iPhone 6). 我发现一些提到1280预设的旧线程可以在iOS 5上使用,但是在iOS 10(iPhone 6)上使用任何预设都没有成功。

It just fails when I try to configure activeVideoMin/MaxFrameDuration to 60fps. 当我尝试将activeVideoMin/MaxFrameDuration配置为60fps时,它只会失败。

The queried format also says it only supports a range between 2 to 30fps. 查询格式还说它仅支持2到30fps之间的范围。

Is there really no way to capture 60fps (or reduce video motion blur) on iOS 10? 真的没有办法在iOS 10上捕获60fps(或减少视频运动模糊)吗?

Iphone 6 and 6 plus has tow device format. iPhone 6和6 Plus具有拖车设备格式。 one for 1080p30 and another for 1080p60. 一个用于1080p30,另一个用于1080p60。 When you set AVCaptureSessionPresetHigh it uses 1080p30. 设置AVCaptureSessionPresetHigh它将使用1080p30。

To record vide with 60fps, iterate through AVCaptureDevice Formats, find the format you want and then set AVCaptureDevice **setActiveFormat** property instead of AVCaptureSession setSessionPreset . 要以60fps录制视频,请遍历AVCaptureDevice Formats,找到所需的格式,然后设置AVCaptureDevice **setActiveFormat**属性而不是AVCaptureSession setSessionPreset

https://developer.apple.com/library/content/technotes/tn2409/_index.html https://developer.apple.com/library/content/technotes/tn2409/_index.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM