GPUImage3 icon indicating copy to clipboard operation
GPUImage3 copied to clipboard

videoSettings dictionary issue

Open nikolayzhuk opened this issue 4 years ago • 1 comments

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

nikolayzhuk avatar Apr 29 '20 22:04 nikolayzhuk

delete this

videoOutput.videoSettings = [ kCVPixelBufferMetalCompatibilityKey as String: true, kCVPixelBufferPixelFormatTypeKey as String:NSNumber(value:Int32(kCVPixelFormatType_420YpCbCr8BiPlanarFullRange))]

kCVPixelBufferMetalCompatibilityKey as String: true,

jeffasd avatar Sep 14 '22 11:09 jeffasd