GPUImage
GPUImage copied to clipboard
I find a bug in GPUImageMovieWriter,and I solved
When I use example iOS SimpleVideoFileFilter to add filter, I find movie cannot be create. I output error:
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSUnderlyingError=0x7fde9371c6f0 {Error Domain=NSOSStatusErrorDomain Code=-12142 "(null)"}, NSLocalizedFailureReason=An unknown error occurred (-12142), NSLocalizedDescription=The operation could not be completed}
After almost a day , I finally find the code CPUImageMovieWriter.m 281row has be commented.I get rid of the commented ,My problem be solved;
I find a bug in GPUImageMovieWriter,and I solved
@ChiLian1207 It is call in - (void)processAudioBuffer:(CMSampleBufferRef)audioBuffer and - (void)newFrameReadyAtTime:(CMTime)frameTime atIndex:(NSInteger)textureIndex;
for camera record, the comment should on, because the camera time not from zero.