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
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:
Replies
Boosts
Views
Activity
Oct ’22
Reply to Video produced with AVCaptureMovieFileOutput is different than preview layer at high zoom factors when stabilization is turned on
This is unfortunately still happening 6 years later. I can’t think of any workaround other than manually adjusting some data to correct for the offset. Have you find a reliable fix?
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Feb ’23