Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVAssetWriterMBS class.

AVAssetWriterMBS.assetWriterWithFile(outputFile as folderitem, outputFileType as string, byref error as NSErrorMBS) as AVAssetWriterMBS

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 writer for writing to the file identified by a given folderitem in a format specified by a given UTI.

outputFile: The location of the file to be written.
outputFileType: The UTI-identified format of the file to be written.
For example, AVFileTypeQuickTimeMovie for a QuickTime movie file, AVFileTypeMPEG4 for an MPEG-4 file, and AVFileTypeAMR for an adaptive multi-rate audio format file.
Error: If initialization of the asset writer fails, upon return contains an error object that describes the problem.

Returns an asset writer for writing to the file identified by URL in the format specified by outputFileType, or nil if the writer could not be initialized.
Writing will fail if a file already exists at URL. UTIs for container formats that can be written are declared in AVMediaFormat.h.

Some examples using this method:

AVAssetWriterMBS.assetWriterWithURL(outputURL as string, outputFileType as string, byref error as NSErrorMBS) as AVAssetWriterMBS

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 writer for writing to the file identified by a given URL in a format specified by a given UTI.

outputURL: The location of the file to be written. The URL must be a file URL.
outputFileType: The UTI-identified format of the file to be written.
For example, AVFileTypeQuickTimeMovie for a QuickTime movie file, AVFileTypeMPEG4 for an MPEG-4 file, and AVFileTypeAMR for an adaptive multi-rate audio format file.
Error: If initialization of the asset writer fails, upon return contains an error object that describes the problem.

Returns an asset writer for writing to the file identified by URL in the format specified by outputFileType, or nil if the writer could not be initialized.
Writing will fail if a file already exists at URL. UTIs for container formats that can be written are declared in AVMediaFormat.h.

AVAssetWriterMBS.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.

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


The biggest plugin in space...