problem about avassetwriter-Collection of common programming errors
Angus Forbes
ios video xcode4 opengl-es-2.0 avassetwriter
I am at my wits end here despite the good information here on StackOverflow…I am trying to write an OpenGL renderbuffer to a video on the iPad 2 (using iOS 4.3). This is more exactly what I am attempting:A) set up an AVAssetWriterInputPixelBufferAdaptorcreate an AVAssetWriter that points to a video file set up an AVAssetWriterInput with appropriate settings set up an AVAssetWriterInputPixelBufferAdaptor to add data to the video fileB) write data to a video file using that AVAssetWriterInputPix
user1754032
objective-c audio video avfoundation avassetwriter
I’m trying to take a video created using the iVidCap plugin and add audio to it. Basically the exact same thing as in this question: Writing video + generated audio to AVAssetWriterInput, audio stuttering. I’ve used the code from this post as a basis to try and modify the iVidCap.mm file myself, but the app always crashes in endRecordingSession.I’m not sure how I need to modify endRecordingSession to accomodate for the audio (the original plugin just creates a video file). Here is the function:-
Denis Otkidach
iphone video-streaming http-live-streaming live-streaming avassetwriter
I started working on HTTP live Streaming protocol and felt very interesting. Went through the complete document provided by Apple.I tried Vedio On Demand and Live Streaming as well using VLC player as the streaming server following the steps mentioned in one of the developer forums and I’m able to stream it successfully.Now I want my iPhone to be the source for streaming and want to use another iPhone to view that content.As mentioned, mediastreamsegmenter is a tool which receives an MPEG-2 tran
Bavarious
ios cocoa-touch avfoundation avassetwriter
I am trying to append CGPixelBufferRefs to an AVAssetWriterInput to create a QuickTime movie.I’m using the following code:BOOL __block shouldContinue = YES;[self.assetWriterInput requestMediaDataWhenReadyOnQueue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0) usingBlock:^(void) { BXLog(@”processing Block”);while ([self.assetWriterInput isReadyForMoreMediaData] && shouldContinue) {BXLog(@”assetWriter isReadyForMoreMediaData, shouldContinue %i”, shouldContinue);NSError *error
tiltem
ios avassetwriter gpuimage
Trying to get started with the really great GPUImage framework so graciously shared by Brad Larson, but having an issue. When running the SimpleVideoFileFilter sample it always crashes at completion with the following error:[AVAssetWriterInput markAsFinished] Cannot call method when status is 2Anyone know how to correct this? Also do not see the video when run in simulator, does it not work for simulator?Running iOS 6.1 and Xcode 4.6Thanks!I am noticing that finishRecordingWithCompletionHandler
gaurav
ios ipad automatic-ref-counting avfoundation avassetwriter
I am getting crash when i am going to create video with array of images when there is an array with length of more than 100 objects then it is giving memory warning and crashing. Anyone please help me how it could be handled. I am working on ARC project. Please see below code which i am using for MP4 Video.NSError *error; NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:@”Documents/video.mov”]; AVAssetWriter *videoWriter = [[AVAssetWriter alloc] initWithURL:[NSURL fileURLWithPa
Sharma krishna
iphone uiimage avassetwriter
Please find the below code.-(void) writeImagesAsMovie:(NSArray *)array toPath:(NSString*)path numPhoto:(NSInteger)totPics {ALAsset *asset = [assets objectAtIndex:0];ALAssetRepresentation *assetRepresentation = [asset defaultRepresentation]; UIImage *getImage = [UIImage imageWithCGImage:[assetRepresentation fullScreenImage] scale:[assetRepresentation scale] orientation:(UIImageOrientation)[assetRepresentation orientation]];UIImage *first = [getImage imageByScalingAndCroppingForSize:CGSizeMake(
box86rowh
iphone objective-c ipad avassetwriter avassetreader
I have a function that is supposed to re-encode a video to a manageable bitrate on iphone/ipad. Here it is: *UPDATED WORKING CODE, NOW WITH AUDIO! 🙂 *-(void)resizeVideo:(NSString*)pathy{NSString *newName = [pathy stringByAppendingString:@”.down.mov”];NSURL *fullPath = [NSURL fileURLWithPath:newName];NSURL *path = [NSURL fileURLWithPath:pathy];NSLog(@”Write Started”);NSError *error = nil;AVAssetWriter *videoWriter = [[AVAssetWriter alloc] initWithURL:fullPath fileType:AVFileTypeQuickTimeMovie e
James
iphone avfoundation avassetwriter
I am recording a trailing buffer of video. At 15 second intervals, I am creating a new instance of AVAssetWriter, and adding my instance of AVAssetWriterInput as an input. I am grabbing frames using AVCaptureVideoDataOutput, and adding them like this: [writerInput appendSampleBuffer:sampleBuffer]This works fine most of the time, but occasionally the app will crash with this error message:*** -[CFDictionary removeObjectForKey:]: message sent to deallocated instance 0x96b28a0What does this error
Vineet Singh
ios objective-c avassetwriter gpuimage
Can i reuse an existing GPUImageMovieWriter (after calling finishRecording) or is there a method to pause and resume the recording?I get error if i call startRecoding after a finishRecording.Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘*** -[AVAssetWriter addInput:] Cannot call method when status is 2’
MrDatabase
ios video quicktime avassetwriter mp4a
I’m currently using AVAssetWriter to generate a Quicktime mov. The video track is generated correctly. Now I’d like to add a “garbage” mp4a audio track. The audio can just be white noise. What I’m mainly concerned with is the mov file containing both video and audio tracks.How do I setup a CMSampleBufferRef that just contains white noise in mp4a format? Here’s what I’ve tried so far:CMSampleBufferRef garbageAudioSampleBuffer = NULL;AudioStreamBasicDescription audioFormat; audioFormat.mSampleRate
Henrietta
ios video h.264 avassetwriter
I’m finishing an iPhone app that saves a movie to the photos album. The movie source is an array of images. I have it making movies and it’s putting them in the photos album quite nicely, but it always has an extra green frame at the start.Any ideas?I’ve re-read the docs at Apple, jiggled the wires and did some tests with numbered images to confirm it’s not dropping a frame or something like that. still not getting it the right way round.//build save path with time NSMutableString *buildPath = [
nsgulliver
objective-c cocoa-touch avfoundation avassetwriter
I’m writing a MP4 video file with a AVAssetWriter using a AVAssetWriterInputPixelBufferAdaptor. The source is a video from a UIImagePickerController, either freshly captured from the camera or from the asset library. Quality right now is UIImagePickerControllerQualityTypeMedium.Some times the writer fails. It’s status is AVAssetWriterStatusFailed and the AVAssetWriter objects error property is: Error Domain=AVFoundationErrorDomain Code=-11800 “The operation could not be completed” UserInfo=0xf5
Rob
ios6 avfoundation grand-central-dispatch avassetwriter
I have been struggling with this problem for over a week. I hope someone sees what I’m doing wrong. I am attempting to use the finishWritingWithCompletionHandler: method since the finishWriting method is now deprecated. I have not had any success using the new method. It fails with an unknown error -11800. I can save my MOV file using the deprecated method fine, but when I create the equivalent with the new method it fails every time. Here is my original code:dispatch_async(movieWritingQue
Web site is in building