NSRare / NSGIF

🔮 iOS Library for converting videos to animated GIFs.
MIT License
924 stars 190 forks source link

AVFoundationErrorDomain Code=-11832 "Cannot Open" #13

Open estock opened 8 years ago

estock commented 8 years ago

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

}

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?

boshd commented 8 years ago

Were you able to solve this yet? Im having the same problem.

sebyddd commented 8 years ago

This definitely sounds like an issue with your source video. Can you put a breakpoint before attempting to convert it to GIF and check the actual video file?

mrazam110 commented 7 years ago

same error .. Any solution ?

z-br commented 7 years ago

Same error here as well, used to work until I upgraded to ios11, but might be code changes too I don't know.

binbins commented 6 years ago

native video (iphone make) is OK when convert to gif, but my mov is created from a group of images, it goes wrong at - (nullable CGImageRef)copyCGImageAtTime:(CMTime)requestedTime actualTime:(nullable CMTime )actualTime error:(NSError _Nullable * _Nullable)outError

binbins commented 6 years ago

I compare their exif info, is different, maybe the problem