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

# AVAssetExportSession

An object that exports assets in a format that you specify using an export preset.

```
class AVAssetExportSession
```

## Overview

You configure this object to export an instance of [`AVAsset`](/documentation/AVFoundation/AVAsset) by setting an export preset, an output file type, and an output URL.

## Topics

### Creating an export session

[`exportSessionWithAsset:presetName:`](/documentation/AVFoundation/AVAssetExportSession/exportSessionWithAsset:presetName:)

Returns a new asset export session that uses the specified preset.

[`init(asset:presetName:)`](/documentation/AVFoundation/AVAssetExportSession/init(asset:presetName:))

Creates an export session with a preset configuration.

[Export presets](/documentation/AVFoundation/export-presets)

Configure an export session to output media in standard sizes and formats.

### Accessing export presets

[`presetName`](/documentation/AVFoundation/AVAssetExportSession/presetName)

The name of the preset that the asset export session uses.

[`determineCompatibleFileTypes(completionHandler:)`](/documentation/AVFoundation/AVAssetExportSession/determineCompatibleFileTypes(completionHandler:))

Determines the output file types an asset export session supports writing in its current configuration.

[`allExportPresets()`](/documentation/AVFoundation/AVAssetExportSession/allExportPresets())

Returns all available export preset names.

[`determineCompatibility(ofExportPreset:with:outputFileType:completionHandler:)`](/documentation/AVFoundation/AVAssetExportSession/determineCompatibility(ofExportPreset:with:outputFileType:completionHandler:))

Determines an export preset’s compatibility to export the asset in a container of the output file type.

### Configuring output

[`supportedFileTypes`](/documentation/AVFoundation/AVAssetExportSession/supportedFileTypes)

An array containing the types of files the session can write.

[`allowsParallelizedExport`](/documentation/AVFoundation/AVAssetExportSession/allowsParallelizedExport)

A Boolean value that indicates whether the session can parallelize its export operation.

[`shouldOptimizeForNetworkUse`](/documentation/AVFoundation/AVAssetExportSession/shouldOptimizeForNetworkUse)

A Boolean value that indicates whether to optimize the movie for network use.

[`canPerformMultiplePassesOverSourceMediaData`](/documentation/AVFoundation/AVAssetExportSession/canPerformMultiplePassesOverSourceMediaData)

A Boolean value that indicates whether the export session can perform multiple passes over the source media to achieve better results.

[`timeRange`](/documentation/AVFoundation/AVAssetExportSession/timeRange)

The time range of the source asset to export.

[`fileLengthLimit`](/documentation/AVFoundation/AVAssetExportSession/fileLengthLimit)

The file length that the output of the session must not exceed.

[`directoryForTemporaryFiles`](/documentation/AVFoundation/AVAssetExportSession/directoryForTemporaryFiles)

A directory suitable to store temporary files that the export process generates.

### Configuring output

[`outputURL`](/documentation/AVFoundation/AVAssetExportSession/outputURL)

A URL where an asset export session writes its output.

[`outputFileType`](/documentation/AVFoundation/AVAssetExportSession/outputFileType)

The file type of the output an asset export session writes.

[`supportedFileTypes`](/documentation/AVFoundation/AVAssetExportSession/supportedFileTypes)

An array containing the types of files the session can write.

[`allowsParallelizedExport`](/documentation/AVFoundation/AVAssetExportSession/allowsParallelizedExport)

A Boolean value that indicates whether the session can parallelize its export operation.

[`shouldOptimizeForNetworkUse`](/documentation/AVFoundation/AVAssetExportSession/shouldOptimizeForNetworkUse)

A Boolean value that indicates whether to optimize the movie for network use.

[`canPerformMultiplePassesOverSourceMediaData`](/documentation/AVFoundation/AVAssetExportSession/canPerformMultiplePassesOverSourceMediaData)

A Boolean value that indicates whether the export session can perform multiple passes over the source media to achieve better results.

[`timeRange`](/documentation/AVFoundation/AVAssetExportSession/timeRange)

The time range of the source asset to export.

[`fileLengthLimit`](/documentation/AVFoundation/AVAssetExportSession/fileLengthLimit)

The file length that the output of the session must not exceed.

[`directoryForTemporaryFiles`](/documentation/AVFoundation/AVAssetExportSession/directoryForTemporaryFiles)

A directory suitable to store temporary files that the export process generates.

### Configuring metadata

[`metadata`](/documentation/AVFoundation/AVAssetExportSession/metadata)

The metadata an export session writes to the output container file.

[`metadataItemFilter`](/documentation/AVFoundation/AVAssetExportSession/metadataItemFilter)

An object the export session uses to filter the metadata items it transfers to the output asset.

### Configuring video output

[`videoComposition`](/documentation/AVFoundation/AVAssetExportSession/videoComposition)

An optional object that provides instructions for how to composite frames of video.

[`customVideoCompositor`](/documentation/AVFoundation/AVAssetExportSession/customVideoCompositor)

An optional custom object to use when compositing video frames.

### Configuring track groups

[`audioTrackGroupHandling`](/documentation/AVFoundation/AVAssetExportSession/audioTrackGroupHandling)

A policy that defines how the session exports alternate audio tracks.

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

A type that specifies policies for how an export session processes alternate tracks in a track group.

### Configuring audio output

[`audioMix`](/documentation/AVFoundation/AVAssetExportSession/audioMix)

The parameters for audio mixing and an indication of whether to enable nondefault audio mixing for export.

[`audioTimePitchAlgorithm`](/documentation/AVFoundation/AVAssetExportSession/audioTimePitchAlgorithm)

A processing algorithm for managing audio pitch for scaled audio edits.

### Exporting media

[`export(to:as:isolation:)`](/documentation/AVFoundation/AVAssetExportSession/export(to:as:isolation:))

Exports the asset to the output location in the specified file type.

### Exporting media

[`exportAsynchronously(completionHandler:)`](/documentation/AVFoundation/AVAssetExportSession/exportAsynchronously(completionHandler:))

Starts the asynchronous execution of an export session.

[`cancelExport()`](/documentation/AVFoundation/AVAssetExportSession/cancelExport())

Cancels the execution of an export session.

### Monitoring export progress

[`states(updateInterval:)`](/documentation/AVFoundation/AVAssetExportSession/states(updateInterval:))

Monitors the progress state of an export operation.

[`AVAssetExportSession.State`](/documentation/AVFoundation/AVAssetExportSession/State)

Constants that indicate the state of an export operation.

[`AVAssetExportSession.Status`](/documentation/AVFoundation/AVAssetExportSession/Status-swift.enum)

Values that indicate the state of an export session.

### Monitoring export progress

[`status`](/documentation/AVFoundation/AVAssetExportSession/status-swift.property)

The status of the export session.

[`progress`](/documentation/AVFoundation/AVAssetExportSession/progress)

A value that indicates the progress of the export.

[`error`](/documentation/AVFoundation/AVAssetExportSession/error)

An optional error object.

### Estimating file length and duration

[`estimateOutputFileLength(completionHandler:)`](/documentation/AVFoundation/AVAssetExportSession/estimateOutputFileLength(completionHandler:))

Starts estimating the output file length of the export while considering the asset, preset, and time range configuration of the export session.

### Estimating duration

[`estimateMaximumDuration(completionHandler:)`](/documentation/AVFoundation/AVAssetExportSession/estimateMaximumDuration(completionHandler:))

Starts estimating the maximum duration of the export while considering the asset, preset, and time range configuration of the export session.

### Accessing the asset

[`asset`](/documentation/AVFoundation/AVAssetExportSession/asset)

An asset that a session exports.

### Configuring resumable export

[`configureForResumableExport()`](/documentation/AVFoundation/AVAssetExportSession/configureForResumableExport())

Configures the export session for resumable export.

[`configureForResumableExportWithCompletionHandler:`](/documentation/AVFoundation/AVAssetExportSession/configureForResumableExportWithCompletionHandler:)

Attempts to configure the export session into resumption mode.

[`AVAssetExportSession.ResumptionState`](/documentation/AVFoundation/AVAssetExportSession/ResumptionState)

Represents the resumption state of the export session.

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

The current resumption state of the export session.

[`AVAssetExportSession.ResumptionFailureReason`](/documentation/AVFoundation/AVAssetExportSession/ResumptionFailureReason)

The reason that configuring the export session for resumption failed.

### Deprecated

[Deprecated symbols](/documentation/AVFoundation/avassetexportsession-deprecated-symbols)

Review unsupported symbols and their replacements.



---

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)