Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVMutableMovieMBS class.

AVMutableMovieMBS.movieWithData(Data as MemoryBlock, Options as Dictionary = nil, byref Error as NSErrorMBS) as AVMovieMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an AVMutableMovie object from a movie header stored in a Memoryblock/string.

data: A memoryblock/string containing a movie header.
options: An dictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Currently no keys are defined.
Error: If an error occurs creating a movie, describes the nature of the failure.

Returns An AVMutableMovie object or nil in case of error.

You can use this method to operate on movie headers that are not stored in files. In general you should avoid loading an entire movie file with its media data into an instance of memoryblock!

By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an memoryblock and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.

See also:

AVMutableMovieMBS.movieWithData(Data as String, Options as Dictionary = nil, byref Error as NSErrorMBS) as AVMovieMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an AVMutableMovie object from a movie header stored in a Memoryblock/string.

data: A memoryblock/string containing a movie header.
options: An dictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Currently no keys are defined.
Error: If an error occurs creating a movie, describes the nature of the failure.

Returns An AVMutableMovie object or nil in case of error.

You can use this method to operate on movie headers that are not stored in files. In general you should avoid loading an entire movie file with its media data into an instance of memoryblock!

By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an memoryblock and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.

See also:

AVMutableMovieMBS.movieWithFile(File as FolderItem, Options as Dictionary = nil, byref Error as NSErrorMBS) as AVMovieMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an AVMutableMovie object from a movie header stored in a QuickTime movie file or ISO base media file.

File: An folderitem that specifies a file containing a movie header.
options: An Dictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Currently no keys are defined.
Error: If an error occurs creating a movie, describes the nature of the failure.

Returns An AVMutableMovie object or nil in case of error.

By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil.
If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.

AVMutableMovieMBS.movieWithSettingsFromMovie(Movie as AVMovieMBS, Options as Dictionary = nil, byref Error as NSErrorMBS) as AVMovieMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an AVMutableMovie object without tracks (and therefore without media).

movie: If you wish to transfer settings from an existing movie (including movie userdata and metadata, preferred rate, preferred volume, etc.), pass a reference to an AVMovie object representing that movie. Otherwise pass nil. The userdata and metadata from the source movie may need to be converted if the format of that movie differs from fileType; you may wish to inspect the userdata or metadata of the receiver to ensure that important data was copied.
options: A dictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Currently no keys are defined; pass nil for default initialization behavior.
Error: If an error occurs creating a movie, describes the nature of the failure.

Returns An AVMutableMovie object or nil in case of error.

By default, the defaultMediaDataStorage property will be nil and each associated AVMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.

AVMutableMovieMBS.movieWithURL(URL as String, Options as Dictionary = nil, byref Error as NSErrorMBS) as AVMovieMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an AVMutableMovie object from a movie header stored in a QuickTime movie file or ISO base media file.

URL: An URL that specifies a file containing a movie header.
options: An Dictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Currently no keys are defined.
Error: If an error occurs creating a movie, describes the nature of the failure.

Returns An AVMutableMovie object or nil in case of error.

By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil.
If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.

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


The biggest plugin in space...