4
我想知道如何從時間標記,如做一個時間範圍AVAssetExportSession
:創建一個時間範圍AVAssetExportSession
NSTimeInterval start = [[NSDate date] timeIntervalSince1970];
NSTimeInterval end = [[NSDate date] timeIntervalSince1970];
的代碼,我使用了我的出口會話如下:
AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:asset presetName:AVAssetExportPresetHighestQuality];
exportSession.outputURL = videoURL;
exportSession.outputFileType = AVFileTypeQuickTimeMovie;
exportSession.timeRange = CMTimeRangeFromTimeToTime(start, end);
感謝您的幫助!
非常感謝!全部排序。唯一的問題是CMTimeMakeWithSeconds需要有兩個參數。所以第二個參數只是首選的時間尺度。 – user1273431
Opps,固定。這發生在文本區域編寫代碼w/out實時語法檢查:) – djromero