Instance Property


A Boolean value that indicates whether the output automatically configures the size of output buffers.


var automaticallyConfiguresOutputBufferDimensions: Bool { get set }


In most configurations, AVCaptureVideoDataOutput delivers full-resolution buffers that match the video dimensions of the capture device’s activeFormat property. When this property is true, the output is free to scale the buffers delivered to captureOutput(_:didOutput:from:) to a size suitable for preview (approximately the size of the screen).

You can query this property to find out whether the automatic configuration of output buffer dimensions is downscaling buffers to a preview size. You can also query the output’s videoSettings dictionary to find the buffer’s exact dimensions.

The default value of this property is true.

See Also

Configuring Video Capture

var videoSettings: [String : Any]!

The compression settings for the output.

Video Settings Dictionaries

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

var alwaysDiscardsLateVideoFrames: Bool

Indicates whether to drop video frames if they arrive late.

var deliversPreviewSizedOutputBuffers: Bool

A Boolean value that indicates whether the output is configured to deliver preview-sized buffers.

func recommendedVideoSettings(forVideoCodecType: AVVideoCodecType, assetWriterOutputFileType: AVFileType) -> [AnyHashable : Any]?

Returns a video settings dictionary appropriate for capturing video to be recorded to a file with the specified codec and type.

func recommendedVideoSettingsForAssetWriter(writingTo: AVFileType) -> [String : Any]?

Specifies the recommended settings for use with an AVAssetWriterInput.