Platforms to show: All Mac Windows Linux Cross-Platform

Back to SDAVAssetExportSessionMBS class.

SDAVAssetExportSessionMBS.asset as AVAssetMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The asset with which the export session was initialized. (read-only)

(Read only property)

SDAVAssetExportSessionMBS.audioMix as AVAudioMixMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether non-default audio mixing is enabled for export, and supplies the parameters for audio mixing.

(Read and Write property)

SDAVAssetExportSessionMBS.audioSettings as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The audio settings to use.
Example
dim encoder as SDAVAssetExportSessionMBS // your exporter instance

Dim audioSettings As New Dictionary

audioSettings.Value(AVFoundationMBS.AVFormatIDKey) = OSTypeFromStringMBS(AVFoundationMBS.kAudioFormatMPEG4AAC)
audioSettings.Value(AVFoundationMBS.AVNumberOfChannelsKey) = 2
audioSettings.Value(AVFoundationMBS.AVSampleRateKey) = 44100
audioSettings.Value(AVFoundationMBS.AVEncoderBitRateKey) = 128000
encoder.audioSettings = audioSettings

Please create new dictionary, set values and assign the final dictionary to this property.
If you query the settings, you get a copy of the dictionary.
(Read and Write property)

SDAVAssetExportSessionMBS.error as NSErrorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Describes the error that occurred if the export status is AVAssetExportSessionStatusFailed or AVAssetExportSessionStatusCancelled. (read-only)

If there is no error to report, the value of this property is nil.
(Read only property)

SDAVAssetExportSessionMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal object reference.

(Read only property)

SDAVAssetExportSessionMBS.outputFile as FolderItem

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The file of the export session's output.
Example
dim encoder as SDAVAssetExportSessionMBS // your exporter instance

encoder.outputFile = SpecialFolder.Desktop.Child("output.mp4")

(Read and Write property)

SDAVAssetExportSessionMBS.outputFileType as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The type of file to be written by the session.
Example
dim encoder as SDAVAssetExportSessionMBS // your exporter instance

encoder.outputFileType = AVFoundationMBS.AVFileTypeMPEG4

The value is a UTI string corresponding to the file type to use when writing the asset. For a list of constants specifying UTIs for standard file types, see AV Foundation Constants Reference.
(Read and Write property)

SDAVAssetExportSessionMBS.outputURL as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The URL of the export session's output.

(Read and Write property)

SDAVAssetExportSessionMBS.progress as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The progress of the export on a scale from 0 to 1. (read-only)

A value of 0 means the export has not yet begun, 1 means the export is complete.
(Read only property)

SDAVAssetExportSessionMBS.shouldOptimizeForNetworkUse as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the movie should be optimized for network use.

(Read and Write property)

SDAVAssetExportSessionMBS.Status as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The status of the export session. (read-only)

See status constants.
(Read only property)

SDAVAssetExportSessionMBS.timeRange as CMTimeRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The time range to be exported from the source.

The default time range of an export session is kCMTimeZero to kCMTimePositiveInfinity, meaning that (modulo a possible limit on file length) the full duration of the asset will be exported.
(Read and Write property)

SDAVAssetExportSessionMBS.videoComposition as AVVideoCompositionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether video composition is enabled for export, and supplies the instructions for video composition.

(Read and Write property)

SDAVAssetExportSessionMBS.videoInputSettings as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The video input settings to use.

Please create new dictionary, set values and assign the final dictionary to this property.
If you query the settings, you get a copy of the dictionary.
(Read and Write property)

SDAVAssetExportSessionMBS.videoSettings as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The video settings to use.
Example
dim encoder as SDAVAssetExportSessionMBS // your exporter instance

Dim CompressionProperties As New Dictionary
CompressionProperties.Value(AVFoundationMBS.AVVideoAverageBitRateKey) = 6000000
CompressionProperties.Value(AVFoundationMBS.AVVideoProfileLevelKey) = AVFoundationMBS.AVVideoProfileLevelH264High40

Dim videoSettings As New Dictionary

videoSettings.Value(AVFoundationMBS.AVVideoCodecKey) = AVFoundationMBS.AVVideoCodecH264
videoSettings.Value(AVFoundationMBS.AVVideoWidthKey) = 1920
videoSettings.Value(AVFoundationMBS.AVVideoHeightKey) = 1080
videoSettings.Value(AVFoundationMBS.AVVideoCompressionPropertiesKey) = CompressionProperties
encoder.videoSettings = videoSettings

Please create new dictionary, set values and assign the final dictionary to this property.
If you query the settings, you get a copy of the dictionary.
(Read and Write property)

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


The biggest plugin in space...