Open GQAdonis opened 10 years ago
I'm getting this in Beta 3 too. I just get spammed "Couldn't write a frame" in the console.
I am getting the same crash with iOS8. Writing video is fine in iOS7.
Same issue here. I'm creating movie writer like this:
CGSize movieSize = CGSizeMake(640.0, 640.0);
self.movieWriter = [[GPUImageMovieWriter alloc] initWithMovieURL:self.fileURL size:movieSize fileType:AVFileTypeQuickTimeMovie outputSettings:[self outputSettingsWithVideoSize:movieSize]];
self.movieWriter.encodingLiveVideo = YES;
[self.movieWriter setHasAudioTrack:NO audioSettings:nil];
[self.outputFilter addTarget:self.movieWriter];
self.videoCamera.audioEncodingTarget = nil;
outputFilter is simple crop filter. When I compile app with iOS7 SDK, app logs "Couldn't write a frame" message. With iOS8 SDK, app crashes with exception 'NSInternalInconsistencyException', reason: 'Incomplete filter FBO: 36055' in function [GPUImageMovieWriter createDataFBO]. Even if don't use any additional filter or try change other settings (audio, video), it still crashes. On iOS7 everything works fine.
I'm having the same situation. iOS 7 works fine, iOS 8 crash immediately with error 'Incomplete filter FBO: 36055'
I was using the pod and my app was crashing all the time on iOS8. I've tried to download the latest code from master and it's working for me.
Please update the pod file
You're right. When I added GPUImage in old-fashioned way from latest source, everything worked. Now we can hope that pod will be updated as soon as possible.
I am also getting same error in iOS 8 and Above
I had this issue but it turns out my GPUImageMovieWriter wasn't being released. Don't know if this helps anyone else running into the issue, but once I resolved the retain / release issue, the error went away.
Anyone gets any solutions here, it seems to happen quite often
I have a working application that essentially uses the same code as the SimpleVideoFilter sample except I allow 2 minutes of recording and control the time using NSTimer instead of a GCD "dispatch_after" call.
In addition, the recording does not start right away. The user presses a button, which results in a call to [GPUImageMovieWriter startRecording] after camera capture has already started.
On iOS 7.x, things work perfectly. However, on iOS 8 Beta 2, the recording never actually starts, and the app is shut down with an "NSInternalInconsistencyException" related to the audio sample buffer processing when [AVAssetWriter startWriting] is called.
I know this is a lot of code, but I have listed the code for the class that handles ALL the capture and recording below: