BradLarson / GPUImage3

GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal.
BSD 3-Clause "New" or "Revised" License
2.68k stars 331 forks source link

videoSettings dictionary issue #81

Open nikolayzhuk opened 4 years ago

nikolayzhuk commented 4 years ago

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

jeffasd commented 1 year ago

delete this

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

kCVPixelBufferMetalCompatibilityKey as String: true,

PanamaDonne commented 2 months ago

Also seeing the same warning for the sample code (GPUImage3/ XCode 15.3 / minimum target 16.6)