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