Open OneSmallTree opened 9 years ago
I used to get this when outputURL video file name is kept same. This was resolved when i changed the filename .
changing the file name didn't help me with this error..
NSString date = [formatter stringFromDate:[NSDate date]]; NSURL outPutURL = [NSURL fileURLWithPath:[@"~/music/" stringByExpandingTildeInPath]];
outPutURL = [[outPutURL URLByAppendingPathComponent:[@"newname-" stringByAppendingString:date]] URLByAppendingPathExtension:@"mov"]; AVAsset firstAsset = [AVAsset assetWithURL:self.file]; SDAVAssetExportSession encoder = [SDAVAssetExportSession.alloc initWithAsset:firstAsset];
ok solved it .. Issue was my previous session which generates the conversion file took time to stop running...
first,i use the AVCaptureSession and movieFileOutput to get a movie . then , use your code to change the movie . the error showed usually on the flowing . wish to get your help,thanks.
Video export failed with error: Cannot Save (-11823) Video export failed with error: The operation could not be completed (-11800) Video export failed with error: Cannot Open (-11829)