Post

Replies

Boosts

Views

Activity

HDR videos export as solid color from Photo library with certain presets
It seems something is broken with exporting HDR videos from the photo library. We've used the same method to export videos for years now, but all of a sudden HDR videos from devices like the iPhone 12 Pro started exporting with a solid color instead of the actual video content. We're exporting PHAssets using PHImageManager's requestExportSession(forVideo:options:exportPreset:resultHandler:) method with the preset AVAssetExportPreset960x540. The code works just fine for non-HDR content. I haven't been able to test on earlier versions of iOS 14, but I believe this was also working prior to 14.2. After a lot of trial and error, I found that using a different preset works. However, a few other presets are also exporting with a solid color: AVAssetExportPresetLowQuality, and AVAssetExportPresetMediumQuality. Has anyone else experienced this issue? Any advice other than using a different preset? I've put together a sample project that demonstrates the issue here: https://github.com/pixelmatrix/iOS14-HDR-Export-Bug
6
0
1.7k
Nov ’20