SDAVAssetExportSession icon indicating copy to clipboard operation
SDAVAssetExportSession copied to clipboard

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

Open OneSmallTree opened this issue 10 years ago • 2 comments

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)

OneSmallTree avatar Jun 14 '15 06:06 OneSmallTree

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

YogeshGK avatar Aug 07 '17 23:08 YogeshGK

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

solarisis avatar Oct 17 '17 05:10 solarisis