rs / SDAVAssetExportSession

AVAssetExportSession drop-in replacement with customizable audio&video settings
MIT License
805 stars 212 forks source link

Video export failed with error: Cannot Open (-11829) #31

Open OneSmallTree opened 9 years ago

OneSmallTree commented 9 years ago

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)

YogeshGK commented 7 years ago

I used to get this when outputURL video file name is kept same. This was resolved when i changed the filename .

solarisis commented 7 years ago

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...