Skip to content

AVFoundationErrorDomain Code=-11832 "Cannot Open" #13

@estock

Description

@estock

I'm using GPUImage to process a video and then save it as a Mov file, once the video is processed, it saves correctly to my video library.

UISaveVideoAtPathToSavedPhotosAlbum (pathToMovie, self, @selector(video:didFinishSavingWithError:contextInfo:), NULL);

in the didFinishSavingWithError function take the video URL and try to run it through NSGIF

  • (void)video: (NSString *) videoPath didFinishSavingWithError: (NSError *) error contextInfo: (void *) contextInfo;

    NSURL *fileURL = [NSURL fileURLWithPath:videoPath];
    [NSGIF createGIFfromURL:fileURL withFrameCount:30 delayTime:.010 loopCount:0 completion:^(NSURL *GifURL) {
    NSLog(@"Finished generating GIF: %@", GifURL);
    }];

    if (error) {
    NSLog(@"Error Saving Video To Library: %@", error);
    // Do anything needed to handle the error or display it to the user
    } else {
    NSLog(@"Saved Video To Library:");
    }

}

However I constantly get the following error

Error copying image: Error Domain=AVFoundationErrorDomain Code=-11832 "Cannot Open" UserInfo={NSUnderlyingError=0x12750ed50 {Error Domain=NSOSStatusErrorDomain Code=-12431 "(null)"}, NSLocalizedFailureReason=This media cannot be used., NSLocalizedDescription=Cannot Open}
2016-03-24 16:06:37.191 PhotoBooth[1123:444110] Error copying image and no previous frames to duplicate

Any idea what is causing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions