Vote count:
0
I'm trying to record and save a video using GPUCamera framework in Swift.
videoCamera = GPUImageVideoCamera(sessionPreset: AVCaptureSessionPreset1280x720, cameraPosition: .Back)
videoCamera.outputImageOrientation = .LandscapeRight;
videoCamera.horizontallyMirrorFrontFacingCamera = true
videoCamera.addTarget(filter)
videoCamera.startCameraCapture()
movieWriter = GPUImageMovieWriter(movieURL: output, size: view.frame.size)
videoCamera.audioEncodingTarget = movieWriter!
filter?.addTarget(movieWriter!)
I set audioEncodingTarget to true to record audio too. In this way the output video contain a black frame at the beginning. How can I resolve this problem? thanks.
asked 3 mins ago
record audio with GPUImage create black frames at the beginning
Aucun commentaire:
Enregistrer un commentaire