Contents

AVOutputSettingsAssistant

An object that builds audio and video output settings dictionaries.

Declaration

class AVOutputSettingsAssistant

Overview

Use an output settings assistant to create the audio and video settings that you use to configure instances of AVAssetWriter and AVAssetWriterInput. You create an assistant with a specific preset configuration, such as hevc3840x2160WithAlpha or 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 property ensures that the assistant generates settings that don’t scale up video frames from a smaller size.

Topics

Creating an assistant

Configuring output settings

See Also

Media writing