But I receive an error that recording is “unsupported given the current configuration”, on both iPhone X and second generation iPad Pro, when trying to capture video with the following code:
movieFileOutput.setOutputSettings([AVVideoCodecKey: AVVideoCodecType.proRes422], for: movieFileOutputConnection!)
(availableVideoCodecTypes returns only HEVC, H.264, and Motion JPEG as supported for AVCaptureMovieFileOutput.)
If this approach is wrong, can the captured video be encoded by using AVCaptureVideoDataOutput alongside AVAssetWriter? If it can, then how?