Setting AVMutableComposition's frameDuration

前端 未结 3 1295
灰色年华
灰色年华 2020-12-30 15:19

I\'m playing with the AVEditDemo project, from Apple\'s WWDC 2010 sample pack, and I\'m trying to change the frame rate of the exported video. The

3条回答
  •  生来不讨喜
    2020-12-30 15:38

    The client can set sourceTrackIDForFrameTiming to kCMPersistentTrackID_Invalid and frameDuration to an appropriate value in order to specify the maximum output frame rate independent of the source track timing.

    videoComposition.sourceTrackIDForFrameTiming = kCMPersistentTrackID_Invalid;
    videoComposition.frameDuration = CMTimeMake(1, 30);
    

提交回复
热议问题