GPUImage
GPUImage copied to clipboard
when GPUImageMovieWriter hasAudioTrack set YES , it's Crash.
hi. I want to switch without audio or with audio in the recording process at any time.
In the SimpleVideoFilter example. I have a button to click; when I running the app, and during recording, I set :
movieWriter.hasAudioTrack = NO;
it's ok, and it still works. then I set(before movie finish) :
movieWriter.hasAudioTrack = YES;
it's crash.
Exception Thrown:
* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '* -[AVAssetWriter addInput:] Cannot call method when status is 2'