【发布时间】:2014-12-25 10:27:26
【问题描述】:
我正在关注一些示例,说明如何在将视频上传到服务器之前压缩视频以减小文件大小。具体来说,我在这里看过这个问题:How can I reduce the file size of a video created with UIImagePickerController?
但是,我想知道保存输出的最佳位置在哪里。
即使是 AV 基础编程指南也仅提供此示例:
NSError *outError;
NSURL *outputURL = <#NSURL object representing the URL where you want to save the video#>;
AVAssetWriter *assetWriter = [AVAssetWriter assetWriterWithURL:outputURL
fileType:AVFileTypeQuickTimeMovie
error:&outError];
BOOL success = (assetWriter != nil);
再次,寻找有关我要保存视频的确切位置的指导!
干杯, 布伦丹
【问题讨论】:
标签: ios compression avfoundation video-capture avassetwriter