0 Replies
      Latest reply on Dec 6, 2018 12:03 PM by Devgeek
      Devgeek Level 1 Level 1 (0 points)

        To record a video at 24 FPS using AVFoundation, I simply set

         

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

         

        The technique fails if one wishes to record at 23.976 FPS

         

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

         

        I wish to know if there is a way to record at arbitrary FPS, may be through a setting in AVAssetWriter to specify dropping frames and achieving 23.976 FPS?