Instance Property

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.

On iOS the currently the only supported keys are AVVideoCodecKey and kCVPixelBufferPixelFormatTypeKey. The 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.

On iOS 6.0 and later the AVVideoQualityKey is supported, and may only be used when AVVideoCodecKey is set to AVVideoCodecJPEG.

See Also

Configuring Image Settings

var isHighResolutionStillImageOutputEnabled: Bool

A Boolean value that indicates whether the receiver should emit still images at the highest resolution supported by its source AVCaptureDevice objects activeFormat property.

Deprecated
var availableImageDataCVPixelFormatTypes: [NSNumber]

The supported image pixel formats that can be specified as output settings.

var availableImageDataCodecTypes: [AVVideoCodecType]

The supported image codec formats that can be specified as output settings.

Video Settings Dictionaries

Define output image and video formats by using these key and value constants.