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

# AVAssetReaderOutput

An abstract class that defines the interface to read media samples from an asset reader.

```
class AVAssetReaderOutput
```

## Overview

You add concrete output instances, such as [`AVAssetReaderTrackOutput`](/documentation/AVFoundation/AVAssetReaderTrackOutput) or [`AVAssetReaderVideoCompositionOutput`](/documentation/AVFoundation/AVAssetReaderVideoCompositionOutput), to an asset reader to perform specific tasks.

> Important:
> If you don’t require modifying sample data in-place, set the value of the ``doc://com.apple.avfoundation/documentation/AVFoundation/AVAssetReaderOutput/alwaysCopiesSampleData`` property to <doc://com.apple.documentation/documentation/Swift/false> to prevent the output from making unnecessary copies.

## Topics

### Configuring reading

[`alwaysCopiesSampleData`](/documentation/AVFoundation/AVAssetReaderOutput/alwaysCopiesSampleData)

A Boolean value that indicates whether the output vends copied sample data.

[`supportsRandomAccess`](/documentation/AVFoundation/AVAssetReaderOutput/supportsRandomAccess)

A Boolean value that indicates whether the output supports reconfiguring the time ranges it reads.

[`-  resetForReadingTimeRanges:`](/documentation/AVFoundation/AVAssetReaderOutput/reset(forReadingTimeRanges:))

Restarts reading with a new set of time ranges.

[`-  markConfigurationAsFinal`](/documentation/AVFoundation/AVAssetReaderOutput/markConfigurationAsFinal())

Tells the output that it’s finished reconfiguring time ranges, and allows the asset reader to advance to a completed state.

### Copying sample buffers

[`-  copyNextSampleBuffer`](/documentation/AVFoundation/AVAssetReaderOutput/copyNextSampleBuffer())

Copies the next sample buffer from the output.

[`Provider`](/documentation/AVFoundation/AVAssetReaderOutput/Provider)

An object that reads a collection of samples of a common media type from an asset reader.

[`RandomAccessController`](/documentation/AVFoundation/AVAssetReaderOutput/RandomAccessController)

Object used to reset an output provider to read specified time ranges.

[`SupportedPayload`](/documentation/AVFoundation/AVAssetReaderOutput/SupportedPayload)

### Inspecting the media type

[`mediaType`](/documentation/AVFoundation/AVAssetReaderOutput/mediaType)

The media type of samples that the output reads.

## Relationships

### Inherited By

[`AVAssetReaderSampleReferenceOutput`](/documentation/AVFoundation/AVAssetReaderSampleReferenceOutput)

[`AVAssetReaderTrackOutput`](/documentation/AVFoundation/AVAssetReaderTrackOutput)

[`AVAssetReaderVideoCompositionOutput`](/documentation/AVFoundation/AVAssetReaderVideoCompositionOutput)

[`AVAssetReaderAudioMixOutput`](/documentation/AVFoundation/AVAssetReaderAudioMixOutput)

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)