Class

AVCaptureVideoDataOutput

A capture output that records video and provides access to video frames for processing.

Declaration

@interface AVCaptureVideoDataOutput : AVCaptureOutput

Overview

You use this output to process compressed or uncompressed frames from the captured video. You can access the frames with the captureOutput:didOutputSampleBuffer:fromConnection: delegate method.

Topics

Configuring Video Capture

videoSettings

The compression settings for the output.

Video Settings Dictionaries

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

minFrameDuration

The minimum frame duration.

Deprecated
alwaysDiscardsLateVideoFrames

Indicates whether to drop video frames if they arrive late.

automaticallyConfiguresOutputBufferDimensions

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

Beta
deliversPreviewSizedOutputBuffers

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

Beta
- recommendedVideoSettingsForVideoCodecType:assetWriterOutputFileType:

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

- recommendedVideoSettingsForAssetWriterWithOutputFileType:

Specifies the recommended settings for use with an AVAssetWriterInput.

Retrieving Supported Video Types

availableVideoCVPixelFormatTypes

Indicates the supported video pixel formats that can be specified in videoSettings.

availableVideoCodecTypes

Indicates the supported video codec formats that can be specified in videoSettings.

AVVideoCodecType

A set of constants used to describe codecs for video capture.

Receiving Captured Video Data

- setSampleBufferDelegate:queue:

Sets the sample buffer delegate and the queue on which callbacks should be invoked.

sampleBufferDelegate

The capture object’s delegate.

sampleBufferCallbackQueue

The queue on which delegate callbacks should be invoked

AVCaptureVideoDataOutputSampleBufferDelegate

Methods for receiving sample buffers from and monitoring the status of a video data output.

Creating Video Capture Output

- init

Creates a new video file output.

+ new

Creates a new video file output.

Relationships

Inherits From

See Also

Movie and Video Capture

Capturing Video in Alternative Formats

Change the format used for capturing movie files.

AVCaptureMovieFileOutput

A capture output that records video and audio to a QuickTime movie file.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software