<!--
{
  "availability" : [
    "iOS: 4.1.0 - 27.0.0",
    "iPadOS: 4.1.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.7.0 - 27.0.0",
    "tvOS: 9.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetWriterInputPixelBufferAdaptor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetWriterInputPixelBufferAdaptor"
  },
  "title" : "AVAssetWriterInputPixelBufferAdaptor"
}
-->

# AVAssetWriterInputPixelBufferAdaptor

An object that appends video samples to an asset writer input.

```
class AVAssetWriterInputPixelBufferAdaptor
```

## Overview

A pixel buffer adaptor provides a pixel buffer pool that you use to allocate pixel buffers to the output file. Using the provided pool for buffer allocation is typically more efficient than managing your own pool.

## Topics

### Creating an adaptor

[`assetWriterInputPixelBufferAdaptorWithAssetWriterInput:sourcePixelBufferAttributes:`](/documentation/AVFoundation/AVAssetWriterInputPixelBufferAdaptor/assetWriterInputPixelBufferAdaptorWithAssetWriterInput:sourcePixelBufferAttributes:)

Returns a new pixel buffer adaptor that appends pixel buffers to write to the output file.

[`init(assetWriterInput:sourcePixelBufferAttributes:)`](/documentation/AVFoundation/AVAssetWriterInputPixelBufferAdaptor/init(assetWriterInput:sourcePixelBufferAttributes:))

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

### Appending pixel buffers

[`append(_:withPresentationTime:)`](/documentation/AVFoundation/AVAssetWriterInputPixelBufferAdaptor/append(_:withPresentationTime:))

Appends a pixel buffer to the adaptor.

### Accessing the pool

[`pixelBufferPool`](/documentation/AVFoundation/AVAssetWriterInputPixelBufferAdaptor/pixelBufferPool)

A pool of pixel buffers to append to the adaptor’s input.

[`sourcePixelBufferAttributes`](/documentation/AVFoundation/AVAssetWriterInputPixelBufferAdaptor/sourcePixelBufferAttributes)

The attributes of the pixel buffers that the pool contains.

### Inspecting a pixel buffer adaptor

[`assetWriterInput`](/documentation/AVFoundation/AVAssetWriterInputPixelBufferAdaptor/assetWriterInput)

The asset writer input to which the adaptor appends pixel buffers.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)