Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

AVAssetExportSessionMBS.allExportPresets as string()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns all available export preset names.
Notes: Returns an array containing a string constant for each of the available preset names.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.available as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Whether this class is available.
Notes: Returns true on Mac OS X 10.7 and newer.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPreset1280x720 as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes: Specifies output at 1280x720 pixels.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPreset1920x1080 as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes: Specifies output at 1920x1080 pixels.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPreset3840x2160 as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 14.4 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes: Specifies output at 3840x2160 pixels (4K video).

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPreset640x480 as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes: Specifies output at 640x480 pixels.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPreset960x540 as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes: Specifies output at 960x540 pixels.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4A as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: You use this export option to produce an audio-only .m4a file with appropriate iTunes gapless playback data.
Notes: Specifies an audio-only .m4a file with appropriate iTunes gapless playback data.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4V1080pHD as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: One of the export option presets to produce files that can be played on the specific Apple devices.
Notes: Specifies a 1080p High Definition format suitable for playing on Apple devices.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4V480pSD as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: One of the export option presets to produce files that can be played on the specific Apple devices.
Notes: Specifies a 480p Standard Definition format suitable for playing on Apple devices.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4V720pHD as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: One of the export option presets to produce files that can be played on the specific Apple devices.
Notes: Specifies a 720p High Definition format suitable for playing on Apple devices.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4VAppleTV as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: One of the export option presets to produce files that can be played on the specific Apple devices.
Notes: Specifies a format suitable for playing on AppleTV.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4VCellular as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: One of the export option presets to produce files that can be played on the specific Apple devices.
Notes: Specifies a format suitable for playing on Apple devices when streamed over a cellular network.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4ViPod as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: One of the export option presets to produce files that can be played on the specific Apple devices.
Notes: Specifies a format suitable for playing on an iPod.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetAppleM4VWiFi as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: One of the export option presets to produce files that can be played on the specific Apple devices.
Notes: Specifies a format suitable for playing on Apple devices when streamed over a WiFi network.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetAppleProRes422LPCM as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: One of the export option presets to produce files that can be played on the specific Apple devices.
Notes: Specifies a QuickTime movie with Apple ProRes 422 video and LPCM audio.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetHEVC1920x1080 as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 18.4 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes:
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.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetHEVC3840x2160 as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 18.4 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes:
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.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetHEVCHighestQuality as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 18.4 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes:
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.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetHighestQuality as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 18.4 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes:
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.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetLowQuality as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 18.4 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes:
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.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetMediumQuality as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 18.4 Yes No No Yes, macOS only No
Function: You use these export options to produce QuickTime .mov files with a specified video size.
Notes:
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.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.AVAssetExportPresetPassthrough as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: You use this export option to let all tracks pass through.
Notes: Specifies that all tracks pass through, unless it is not possible.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.determineCompatibilityOfExportPreset(presetName as string, asset as AVAssetMBS, outputFileType as string, tag as Variant = nil)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 14.0 Yes No No Yes, macOS only No
Function: Reports the compatibility of an export present, asset, and output file type to the event.
Notes:
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.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.exportPresetsCompatibleWithAsset(asset as AVAssetMBS) as string()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns the identifiers compatible with a given asset.
Notes:
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.

Feedback, Comments & Corrections

AVAssetExportSessionMBS.exportSessionWithAsset(asset as AVAssetMBS, presetName as string) as AVAssetExportSessionMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns an asset export session configured with a specified asset and preset.
Notes:
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.

Feedback, Comments & Corrections

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




Links
MBS Xojo blog