我得到了这个错误:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVAssetWriter initWithURL:fileType:error:] invalid parameter not satisfying: [outputURL isFileURL]'在这一行上:
AVAssetWriter * assetWriter = [[AVAssetWriter alloc] initWithURL:videoURL
fileType: AVFileTypeMPEG4
error: &movieError];其中,videoURL记录为:
/var/mobile/Applications/A032EEA6-C83D-49DA-B118-E4E4B9F41C7F/Documents/videoForSegmentNumber1.mp4在此之前的行将被调用。
我自己也测试过isFileURL,它返回NO。有效的fileURL需要满足什么条件?
发布于 2012-08-16 23:56:32
使用
+ (id)fileURLWithPath:(NSString *)path而不是
+ (id)URLWithString:(NSString *)URLStringhttps://stackoverflow.com/questions/11990920
复制相似问题