GPUImage
GPUImage copied to clipboard
Issue with moviewriter and targetting
videoCamera!.addTarget(filter)
uiElementInput = GPUImageUIElement(view: self.timerLabel)
filter?.addTarget(blendFilter)
uiElementInput?.addTarget(blendFilter)
blendFilter?.addTarget(self.view as GPUImageView)
weak var weakUIElementInput = uiElementInput
func updater(filter: GPUImageOutput!, frameTime: CMTime) -> Void {
weakUIElementInput?.update()
}
filter!.frameProcessingCompletionBlock = updater
This finally puts my label on the video, but I'm unsure of how to add the movieFile and movieWriter back into the targeting, every time I do I either lose the video to the view or it doesn't include the label.