Class

AVAssetWriterInputPixelBufferAdaptor

A buffer used to append video samples packaged as pixel buffers to a single asset writer input.

Declaration

@interface AVAssetWriterInputPixelBufferAdaptor : NSObject

Overview

Instances of AVAssetWriterInputPixelBufferAdaptor provide a CVPixelBufferPoolRef that you can use to allocate pixel buffers for writing to the output file. Using the provided pixel buffer pool for buffer allocation is typically more efficient than appending pixel buffers allocated using a separate pool.

Topics

Creating an Adaptor

+ assetWriterInputPixelBufferAdaptorWithAssetWriterInput:sourcePixelBufferAttributes:

Returns a new pixel buffer adaptor to receive pixel buffers for writing to the output file.

- initWithAssetWriterInput:sourcePixelBufferAttributes:

Creates a new pixel buffer adaptor to receive pixel buffers for writing to the output file.

Adding a Pixel Buffer

- appendPixelBuffer:withPresentationTime:

Appends a pixel buffer to the receiver.

Inspecting a Pixel Buffer Adaptor

assetWriterInput

The asset writer input to which the adaptor should append pixel buffers.

pixelBufferPool

A pixel buffer pool that vends and efficiently recycles pixel buffer objects that can be appended to the receiver.

sourcePixelBufferAttributes

The pixel buffer attributes for the pixel buffers vended by the adaptor’s pixel buffer pool.

Relationships

Inherits From

See Also

File Export

Exporting Video to Alternative Formats

Convert an existing movie file to a different format.

AVAssetExportSession

An object that transcodes the contents of an asset source object to create an output of the form described by a specified export preset.

AVAssetWriter

An object used to write media data to a new file of a specified audiovisual container type.

AVAssetWriterInput

A writer used to append media samples to a single track of an asset writer's output file.

AVVideoTransferFunction_ITU_R_2100_HLG

The transfer function for the ITU_R BT.2100 color space.

AVOutputSettingsAssistant

An object that specifies a set of parameters for configuring objects that use output settings dictionaries.

AVAssetWriterInputGroup

A group of tracks in a mutually exclusive relationship.

AVAssetWriterInputMetadataAdaptor

An object that defines an interface for writing metadata packaged as timed metadata groups into a single asset writer input.

AVAssetWriterInputPassDescription

An object that defines an interface for querying about the requirements of the current pass.