Post

Replies

Boosts

Views

Activity

Reply to AVPlayerItemVideoOutput Converting HDR Video to SDR not work
Finally figured it out with the help of this WWDC session: https://developer.apple.com/videos/play/wwdc2022/110565/?time=653 You can use the initializer with outputSettings instead of pixelBufferAttributes and the AVFoundations keys and values to use there do work like the document specifies: (pardon my Swift) let output = AVPlayerItemVideoOutput(outputSettings: [     AVVideoColorPropertiesKey: [         AVVideoColorPrimariesKey: AVVideoColorPrimaries_ITU_R_709_2,         AVVideoTransferFunctionKey: AVVideoTransferFunction_ITU_R_709_2,         AVVideoYCbCrMatrixKey: AVVideoYCbCrMatrix_ITU_R_709_2     ],     kCVPixelBufferPixelFormatTypeKey as String: NSNumber(value: cvPixelBufferFormat),     kCVPixelBufferIOSurfacePropertiesKey as String: [:],     kCVPixelBufferMetalCompatibilityKey as String: true ] as [String: Any])
Topic: Media Technologies SubTopic: Audio Tags:
Oct ’22