BradLarson / GPUImage2

GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing.
BSD 3-Clause "New" or "Revised" License
4.88k stars 611 forks source link

A few question about the new GPUImage2. #264

Open HomingTsui opened 6 years ago

HomingTsui commented 6 years ago

I'm new to GPUImage2, and having hard time to learn the new GPUImage2 from the iOS demo.

  1. In the Camera Class, when you set the audioEncodingTarget, the fps will drop very hard, and the video will result a black screen for the first frame, how can I solve this problem? self.camera.audioEncodingTarget = self.movie_output By not setting audioEncodingTarget, the problem is solve, but the video is silence.

  2. SerialDispatchQueue, runOperationSynchronously(_ operation:() -> ()) method will crash, and I can't find a proper way to solve the problem.

self.serialDispatchQueue.sync { self.makeCurrentContext() operation() }

joshbernfeld commented 6 years ago

You might try removing the call to removeAudioInputsAndOutputs() since it causes a black flash on video output when starting and stopping recording (aka from changing the audioEncodingTarget to a new MovieOutput).

jagdev7dayz commented 5 years ago

Facing same issue, did you get any solution for it?