Avfoundationerrordomain Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you
Avfoundationerrordomain 11800
might have Meta Discuss the workings and policies of this site error 11821 lomotif About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting cannot decode the media data could not be decoded. it may be damaged. ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7
Avfoundationerrordomain Code=-11800 The Operation Could Not Be Completed
million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up AVAssetExportSession Error -11820 up vote 9 down vote favorite I'm writing an application that works with video using AVFoundation. The behaviour of my application is simple: I take a video from the camera roll, then I create
Avfoundationerrordomain Code=-11855
an AVMutableComposition with some audio tracks. With the mix composition i initialize an AVAssetExportSession that stores the video file in the documents directory of my app. Until this point everything it's ok: my video is stored and I'm able to play it in another controller. If I take the video that i have just stored in my documents folder to make some editing (in the same way of the first time AVmutableComposition, AVAssetExportSession) it's ok again. But the third time I do this process to editing a video the AVAssetExportSession status becomes "Fail" and with this error: "Domain=AVFoundationErrorDomain Code=-11820 "Cannot Complete Export" UserInfo=0x1a9260 {NSLocalizedRecoverySuggestion=Try exporting again., NSLocalizedDescription=Cannot Complete Export}" I have read that is a general error where the session couldn't be exported. What is the sense of this? Why only the third time that i made the editing process? Could it be a memory management mistake? A bug?. This is the code of my AVAssetExportSession: _assetExport = [[AVAssetExportSession alloc] initWithAsset:mixComposition presetN
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss avfoundationerrordomain codes the workings and policies of this site About Us Learn more about
Avfoundationerrordomain Code=-11850
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow mediaplayererrordomain code=-11855 Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each http://stackoverflow.com/questions/5624150/avassetexportsession-error-11820 other. Join them; it only takes a minute: Sign up AVURLAsset refuses to load video up vote 34 down vote favorite 6 I'm trying to load a video file into my iPad app as an AVURLAsset, using the asynchronous-loading stuff to wait for it to be ready. Problem is, when I run it, I get a completely generic http://stackoverflow.com/questions/4101380/avurlasset-refuses-to-load-video "failure" error message that I have no idea what to do with. The video works if I hand it to an MPMoviePlayerController, but AVURLAsset seems to refuse to have anything to do with it. Code: asset = [[AVURLAsset alloc] initWithURL:[NSURL URLWithString:[docPath stringByAppendingPathComponent:@"video.mov"]] options:nil]; [asset loadValuesAsynchronouslyForKeys:[NSArray arrayWithObject:@"tracks"] completionHandler:^{ dispatch_async(dispatch_get_main_queue(), ^{ [self composeIfReady]; }); }]; ... - (void)composeIfReady { NSError *error = nil; if([asset statusOfValueForKey:@"tracks" error:&error] == AVKeyValueStatusFailed) NSLog(@"error loading: %@", [error description]); if(error == nil) NSLog(@"okay awesome"); } The output: error loading: Error Domain=AVFoundationErrorDomain Code=-11800 "The operation couldn’t be completed. (AVFoundationErrorDomain error -11800.)" UserInfo=0x1696f0 {NSUnderlyingError=0x169a40 "The operation couldn’t be completed. (OSStatus error -12936.)"} -11800, by the way, is the error code for "unknown error". Kind of a dead end. Any ideas? Is there something I should be setting up before I try to load the asset? ipad video ios avfoundation ios4 share|improve this question edited Jan 10 '12 at 23:53 asked Nov 4 '10 at 21:05 Noah Witherspoon 47.1k13104115 add a comment| 3 Answers 3 active oldest votes up vote 95 down vote accep
Apple Developer Forums / Media / AVFoundation (Video and Camera) Please enter a title. You can not post a blank message. Please type your https://forums.developer.apple.com/thread/51219 message and try again. AVFoundationErrorDomain Code=-11853 1136Views 1 Reply Latest reply: Aug 9, 2016 1:49 AM by mithilesh_hs Level 1 (0 points) jerryZhu Jul 8, 2016 1:06 AM HiThe AVPlayer notify AVPlayerItemFailedToPlayToEndTimeNotification when playing the stream . could not i use the below code and print the error details :NSError *error = notification.userInfo[AVPlayerItemFailedToPlayToEndTimeErrorKey];NSLog(@"itemFailedToPlayMPMovieFinishReasonPlaybackError=%@" ,error);Error details:Error Domain=AVFoundationErrorDomain Code=-11853 "Stream has no valid alternates" UserInfo={NSLocalizedFailureReason=This data is damaged, incomplete, or incompatible., NSLocalizedDescription=Cannot Parse, NSDebugDescription=Stream has no valid alternates, could not be NSUnderlyingError=0x155aa070 {Error Domain=CoreMediaErrorDomain Code=-12880 "Can not proceed after removing variant" UserInfo={NSDescription=Can not proceed after removing variant}}}And the Error just only happen on the IOS10 . And i did not find Code=-11853 in https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVFoundation_ErrorConstants/index.html#//ap…my question:1>What is the cause of this error?2>how to fix it ?Thanks Tags: none (add) avplayerContent tagged with avplayer, avfoundationContent tagged with avfoundation, avplayeritemContent tagged with avplayeritem This content has been marked as final. Show 1 reply Re: AVFoundationErrorDomain Code=-11853 Level 1 (0 points) mithilesh_hs Aug 9, 2016 1:49 AM (in response to jerryZhu) Hi jerryZhuDid you find the solution for your problem? I am also getting same error. This helped me Show 0 Likes (0)