GPUImage3
GPUImage3 copied to clipboard
videoSettings dictionary issue
I run the sample code like below
do {
camera = try Camera(sessionPreset: .photo)
movie = MovieInput(url:movieURL, playAtActualSpeed:true)
filter = ChromaKeyBlend()
filter.colorToReplace = Color(red: 0, green: 1, blue: 0)
camera --> filter --> renderView
movie --> filter
camera.startCapture()
movie.startProcessing()
} catch {
print("Couldn't process movie with error: \(error)")
}
Then there is one warning in the console. *** -[AVCaptureVideoDataOutput setVideoSettings:] - videoSettings dictionary contains one or more unsupported (ignored) keys: ( MetalCompatibility )
How should I remove this warning? Please help me
delete this
videoOutput.videoSettings = [ kCVPixelBufferMetalCompatibilityKey as String: true, kCVPixelBufferPixelFormatTypeKey as String:NSNumber(value:Int32(kCVPixelFormatType_420YpCbCr8BiPlanarFullRange))]
kCVPixelBufferMetalCompatibilityKey as String: true,
Also seeing the same warning for the sample code (GPUImage3/ XCode 15.3 / minimum target 16.6)