GPUImage2 icon indicating copy to clipboard operation
GPUImage2 copied to clipboard

A few question about the new GPUImage2.

Open HomingTsui opened this issue 5 years ago • 2 comments

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() }

HomingTsui avatar Jul 27 '18 22:07 HomingTsui

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).

joshbernfeld avatar Aug 09 '18 06:08 joshbernfeld

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

jagdev7dayz avatar Jun 20 '19 06:06 jagdev7dayz