Hello,
I'm implementing video export for uploading to the server and I'm using AVExportSession for achieving it. The session is using AVAssetExportPresetHEVC1920x1080 for all videos. The issue, I'm facing, is the failure to export with the AVFoundation -11800 Unknown error, when I'm trying to export slow motion video to the URL.
The export URL has a defined file extension and it is guaranteed, that there is no file at the URL.
The AVAsset (AVComposition) for export is requested using the Photos framework with the following video export options:
let videoOptions = PHVideoRequestOptions()
videoOptions.isNetworkAccessAllowed = true
videoOptions.version = .current
videoOptions.deliveryMode = .highQualityFormat
return videoOptions
The only workaround, I found is to export with the AVAssetExportPresetMediumQuality or AVAssetExportPreset1920x1080. None of these approaches suits me, because both presets will encode video to H.264 format, which doesn't make a lot of sense since the video is originally encoded in HEVC format.
Is there something, what I'm missing or is it a system bug?
Thanks