Export Preset Names for QuickTime Files of a Given Size

You use these export options to produce QuickTime movie files with a specified video size.

Overview

The export will not scale the video up from a smaller size. Choose the video compression appropriate for your media file; Compression for audio uses AAC. Some devices cannot support some sizes.

Topics

Export Size

let AVAssetExportPreset640x480: String

The output uses H.264 video compression at 640 x 480 pixels.

let AVAssetExportPreset960x540: String

The output uses H.264 video compression at 960 x 540 pixels.

let AVAssetExportPreset1280x720: String

The output uses H.264 video compression at 1280 x 720 pixels.

let AVAssetExportPreset1920x1080: String

The output uses H.264 video compression at 1920 x 1080 pixels.

let AVAssetExportPreset3840x2160: String

The output uses H.264 video compression at 3840 x 2160 pixels.

let AVAssetExportPresetHEVC1920x1080: String

The output uses HEVC video compression at 1920 x 1080 pixels.

let AVAssetExportPresetHEVC3840x2160: String

The output uses HEVC video compression at 3840 x 2160 pixels.

let AVAssetExportPresetHEVCHighestQuality: String

The output uses the highest applicable video quality and HEVC video compression.

See Also

Configuring Export Presets

var presetName: String

The name of the preset used to initialize the session.

class func allExportPresets() -> [String]

Returns all available export preset names.

class func exportPresets(compatibleWith: AVAsset) -> [String]

Returns the identifiers compatible with a given asset.

class func determineCompatibility(ofExportPreset: String, with: AVAsset, outputFileType: AVFileType?, completionHandler: (Bool) -> Void)

Reports the compatibility of an export present, asset, and output file type to the specified block.

Export Preset Names for Device-Appropriate QuickTime Files

You use these export options to produce QuickTime movie files with video size appropriate to the current device.

Export Preset Name for iTunes Audio

You use this export option to produce an audio-only MPEG 4 Audio file with appropriate iTunes gapless playback data.

Export Preset Names for Apple Devices

You use these export options to produce playable files for use on specific Apple devices.

Export Preset Name for Pass Through

You use this export option to let all tracks pass through as formatted unless otherwise prohibited.

func determineCompatibleFileTypes(completionHandler: ([AVFileType]) -> Void)

Reports the compatible file types for the current export session to the specified block.