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

# AVOutputSettingsAssistant

An object that builds audio and video output settings dictionaries.

```
class AVOutputSettingsAssistant
```

## Overview

Use an output settings assistant to create the audio and video settings that you use to configure instances of [`AVAssetWriter`](/documentation/AVFoundation/AVAssetWriter) and [`AVAssetWriterInput`](/documentation/AVFoundation/AVAssetWriterInput). You create an assistant with a specific preset configuration, such as [`hevc3840x2160WithAlpha`](/documentation/AVFoundation/AVOutputSettingsPreset/hevc3840x2160WithAlpha) or [`preset1920x1080`](/documentation/AVFoundation/AVOutputSettingsPreset/preset1920x1080). You can accept the settings dictionaries as is to generate a file that conforms to the criteria that the preset implies. You may also use the dictionaries it generates as a base configuration that you can customize as you require.

Providing the assistant additional details about your source media helps it generate more complete results. For example, setting a value for its [`sourceVideoFormat`](/documentation/AVFoundation/AVOutputSettingsAssistant/sourceVideoFormat) property ensures that the assistant generates settings that don’t scale up video frames from a smaller size.

## Topics

### Creating an assistant

[`init(preset:)`](/documentation/AVFoundation/AVOutputSettingsAssistant/init(preset:))

Creates an output setting assistant with a preset configuration.

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

A structure that defines preset configurations for an output settings assistant.

[`availableOutputSettingsPresets()`](/documentation/AVFoundation/AVOutputSettingsAssistant/availableOutputSettingsPresets())

Returns an array of preset values to use to initialize an output settings assistant.

### Configuring output settings

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

A uniform type identifier (UTI) that indicates the type of file to write.

[`audioSettings`](/documentation/AVFoundation/AVOutputSettingsAssistant/audioSettings)

An audio settings dictionary.

[`sourceAudioFormat`](/documentation/AVFoundation/AVOutputSettingsAssistant/sourceAudioFormat)

The format of the source audio data.

[`videoSettings`](/documentation/AVFoundation/AVOutputSettingsAssistant/videoSettings)

A video settings dictionary.

[`sourceVideoFormat`](/documentation/AVFoundation/AVOutputSettingsAssistant/sourceVideoFormat)

The format of the source video data.

[`sourceVideoMinFrameDuration`](/documentation/AVFoundation/AVOutputSettingsAssistant/sourceVideoMinFrameDuration)

A time value that describes the minimum frame duration of the video data.

[`sourceVideoAverageFrameDuration`](/documentation/AVFoundation/AVOutputSettingsAssistant/sourceVideoAverageFrameDuration)

A time value that describes the average frame duration of the video data.



---

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)