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 |
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 |
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 |
Returns true on Mac OS X 10.7 and newer.
The items on this page are in the following plugins: MBS AVFoundation Plugin.