outputSettings
The compression settings for the output.
Declaration
var outputSettings: [String : Any] { get set }Discussion
Use availableImageDataCVPixelFormatTypes and availableImageDataCodecTypes to determine what codec keys and pixel formats are supported.
In iOS, the only currently supported keys are AVVideoCodecKey and kCVPixelBufferPixelFormatTypeKey. These keys are mutually exclusive—only one may be present. The recommended values are kCMVideoCodecType_JPEG for AVVideoCodecKey and kCVPixelFormatType_420YpCbCr8BiPlanarFullRange and kCVPixelFormatType_32BGRA for kCVPixelBufferPixelFormatTypeKey.
In iOS 6.0 and later, the AVVideoQualityKey is supported, and may only be used when AVVideoCodecKey is set to AVVideoCodecJPEG.