AVFoundation以分数FPS录制视频

时间:2018-12-06 20:11:26

标签: ios avfoundation avcapturesession avassetwriter avassetwriterinput

要使用AVFoundation以24 FPS录制视频,我只需设置

 self.videoDevice?.activeVideoMaxFrameDuration = CMTimeMake(value: 1, timescale: 24)                    
 self.videoDevice?.activeVideoMinFrameDuration = CMTimeMake(value: 1, timescale: 24)  

如果有人希望以23.976 FPS的速度录制,该技术就会失败

 self.videoDevice?.activeVideoMaxFrameDuration = CMTimeMake(value: 1000, timescale: 23976)                    
 self.videoDevice?.activeVideoMinFrameDuration = CMTimeMake(value: 1000, timescale: 23976)  

我想知道是否有一种以小数FPS录制的方法,可能是通过AVAssetWriter中的设置来指定丢帧并达到23.976 FPS而不是24?

0 个答案:

没有答案