Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVAssetExportSessionMBS class.

AVAssetExportSessionMBS.allExportPresets as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns all available export preset names.

Returns an array containing a string constant for each of the available preset names.

AVAssetExportSessionMBS.available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether this class is available.

Returns true on Mac OS X 10.7 and newer.

AVAssetExportSessionMBS.AVAssetExportPreset1280x720 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

Specifies output at 1280x720 pixels.

AVAssetExportSessionMBS.AVAssetExportPreset1920x1080 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

Specifies output at 1920x1080 pixels.

AVAssetExportSessionMBS.AVAssetExportPreset3840x2160 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 14.4 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

Specifies output at 3840x2160 pixels (4K video).

AVAssetExportSessionMBS.AVAssetExportPreset640x480 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

Specifies output at 640x480 pixels.

Some examples using this method:

AVAssetExportSessionMBS.AVAssetExportPreset960x540 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

Specifies output at 960x540 pixels.

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4A as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
You use this export option to produce an audio-only .m4a file with appropriate iTunes gapless playback data.

Specifies an audio-only .m4a file with appropriate iTunes gapless playback data.

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4V1080pHD as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the export option presets to produce files that can be played on the specific Apple devices.

Specifies a 1080p High Definition format suitable for playing on Apple devices.

Some examples using this method:

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4V480pSD as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the export option presets to produce files that can be played on the specific Apple devices.

Specifies a 480p Standard Definition format suitable for playing on Apple devices.

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4V720pHD as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the export option presets to produce files that can be played on the specific Apple devices.

Specifies a 720p High Definition format suitable for playing on Apple devices.

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4VAppleTV as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the export option presets to produce files that can be played on the specific Apple devices.

Specifies a format suitable for playing on AppleTV.

Some examples using this method:

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4VCellular as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the export option presets to produce files that can be played on the specific Apple devices.

Specifies a format suitable for playing on Apple devices when streamed over a cellular network.

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4ViPod as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the export option presets to produce files that can be played on the specific Apple devices.

Specifies a format suitable for playing on an iPod.

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4VWiFi as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the export option presets to produce files that can be played on the specific Apple devices.

Specifies a format suitable for playing on Apple devices when streamed over a WiFi network.

Some examples using this method:

AVAssetExportSessionMBS.AVAssetExportPresetAppleProRes422LPCM as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the export option presets to produce files that can be played on the specific Apple devices.

Specifies a QuickTime movie with Apple ProRes 422 video and LPCM audio.

AVAssetExportSessionMBS.AVAssetExportPresetHEVC1920x1080 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

These export options can be used to produce movie files with the specified video size.
The export will not scale the video up from a smaller size. The video will be compressed using
HEVC and the audio will be compressed using AAC. Some devices cannot support some sizes.

AVAssetExportSessionMBS.AVAssetExportPresetHEVC3840x2160 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

These export options can be used to produce movie files with the specified video size.
The export will not scale the video up from a smaller size. The video will be compressed using
HEVC and the audio will be compressed using AAC. Some devices cannot support some sizes.

AVAssetExportSessionMBS.AVAssetExportPresetHEVCHighestQuality as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

These export options can be used to produce movie files with video size appropriate to the device.
The export will not scale the video up from a smaller size. The video will be compressed using HEVC and the audio will be compressed using AAC.

AVAssetExportSessionMBS.AVAssetExportPresetHighestQuality as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

These export options can be used to produce movie files with video size appropriate to the device.
The export will not scale the video up from a smaller size. The video will be compressed using H.264 and the audio will be compressed using AAC.

AVAssetExportSessionMBS.AVAssetExportPresetLowQuality as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

These export options can be used to produce movie files with video size appropriate to the device.
The export will not scale the video up from a smaller size. The video will be compressed using H.264 and the audio will be compressed using AAC.

AVAssetExportSessionMBS.AVAssetExportPresetMediumQuality as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
You use these export options to produce QuickTime .mov files with a specified video size.

These export options can be used to produce movie files with video size appropriate to the device.
The export will not scale the video up from a smaller size. The video will be compressed using H.264 and the audio will be compressed using AAC.

AVAssetExportSessionMBS.AVAssetExportPresetPassthrough as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
You use this export option to let all tracks pass through.

Specifies that all tracks pass through, unless it is not possible.

Some examples using this method:

AVAssetExportSessionMBS.determineCompatibilityOfExportPreset(presetName as string, asset as AVAssetMBS, outputFileType as string, tag as Variant = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Reports the compatibility of an export present, asset, and output file type to the event.

Calls later AVAssetExportSessionMBS.determineCompatibilityOfExportPresetCompleted event.

presetName: The name of the preset template for the export operation. For possible values, see "Export Preset Names for Device-Appropriate QuickTime Files," "Export Preset Names for QuickTime Files of a Given Size," AVAssetExportSessionStatusCancelled, "Export Preset Name for iTunes Audio," and "Export Preset Name for Pass-Through."
asset: The asset object that you are planning to export.
outputFileType: The UTI string corresponding to the file type. For example, to specify a QuickTime movie file format, you could specify the constant AVFileTypeQuickTimeMovie. For a list of constants specifying UTIs for standard file types, see AV Foundation Constants Reference.

Because not all export presets are compatible with all assets and file types, you can use this method to query the compatibility of specific combos before using them. To ensure that the export operation succeeds, you should not make any significant changes to the asset between the time of calling this method and performing the export operation.

This method performs its checks asynchronously on a secondary thread and returns immediately. The results are similarly reported to the event later.

Available in OS X v10.9 and later.

With tag you can pass any value you like to the event later. This can be for example an object reference or a number in an array. Be aware that the reference to this tag value is kept until the event is called and can cause memory reference cycles.

AVAssetExportSessionMBS.exportPresetsCompatibleWithAsset(asset as AVAssetMBS) as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the identifiers compatible with a given asset.

asset: An asset that is ready to be exported.

Returns an array of strings representing the identifiers compatible with asset.

The array is a complete list of the valid identifiers that can be used with exportSessionWithAsset with the specified asset.

Not all export presets are compatible with all assets. For example, a video-only asset is not compatible with an audio-only preset. This method returns only the identifiers for presets that are compatible with the given asset.

In order to ensure that the setup and running of an export operation will succeed using a given preset, you should not make significant changes to the asset (such as adding or deleting tracks) between retrieving compatible identifiers and performing the export operation.

If the asset's tracks are not currently loaded, they may be loaded by this method before any checks are performed.

Some examples using this method:

AVAssetExportSessionMBS.exportSessionWithAsset(asset as AVAssetMBS, presetName as string) as AVAssetExportSessionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an asset export session configured with a specified asset and preset.

asset: The asset you want to export.
presetName: A string constant specifying the name of the preset template for the export.

Returns an asset export session initialized to export asset using preset presetName.

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


The biggest plugin in space...