Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

AVOutputSettingsAssistantMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class AVFoundation MBS AVFoundation Plugin 14.0 Yes No No Yes, macOS only No
Function: The helper class to configure output settings.
A class, each instance of which specifies a set of parameters for configuring objects that use output settings dictionaries, for example AVAssetWriter & AVAssetWriterInput, so that the resulting media file conforms to some specific criteria.

Instances of AVOutputSettingsAssistant are typically created using a string constant representing a specific preset configuration, such as AVOutputSettingsPreset1280x720. Once you have an instance, its properties can be used as a guide for creating and configuring an AVAssetWriter object and one or more AVAssetWriterInput objects. If all the suggested properties are respected, the resulting media file will conform to the criteria implied by the preset. Alternatively, the properties of an instance can be used as a "base" configuration which can be customized to suit your individual needs.

The recommendations made by an instance get better as you tell it more about the format of your source data. For example, if you set the sourceVideoFormat property, the recommendation made by the videoSettings property will ensure that your video frames are not scaled up from a smaller size.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

This class has no sub classes.

The items on this page are in the following plugins: MBS AVFoundation Plugin.

AVMutableVideoCompositionMBS   -   AVPixelAspectRatioMBS

MBS Xojo tutorial videos