Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVMutableMovieMBS class.

AVMutableMovieMBS.addMutableTracksCopyingSettingsFromTracks(existingTracks() as AVMovieTrackMBS, options as Dictionary) as AVMutableMovieTrackMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Adds one or more empty tracks to the target movie, copying track settings from the source tracks.

existingTracks: An array of AVMovieTrack objects.
options: An dictionary object that contains keys for specifying options for the initialization of the new AVMutableMovieTrack objects. Currently no keys are defined; pass nil for default initialization behavior.
Returns An array of AVMutableMovieTrack objects; the index of a track in this array is the same as the index of its source track in the existingTracks array.
This method creates one or more empty tracks in the target movie and configures those tracks with settings (such as track userdata and metadata, width, height, and preferred volume) copied from the source tracks in the existingTracks array. Also, properties involving pairs of tracks (such as track references) are copied from the source tracks to the target tracks.

AVMutableMovieMBS.addMutableTrackWithMediaType(mediaType as String, track as AVMovieTrackMBS, options as Dictionary) as AVMutableMovieTrackMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Adds an empty track to the target movie.

mediaType: The media type of the new track (e.g. AVMediaTypeVideo for a video track).
track: If you wish to transfer settings from an existing track, including track userdata and metadata, width, height, preferred volume, etc., pass a reference to an AVMovieTrack representing that track. Otherwise pass nil.
options: An Dictionary object that contains keys for specifying options for the initialization of the new AVMutableMovieTrack object. Currently no keys are defined; pass nil for default initialization behavior.
Returns An AVMutableMovieTrack object or nil in case of error.
The trackID of the newly added track is a property of the returned instance of AVMutableMovieTrack.

AVMutableMovieMBS.Constructor(Data as MemoryBlock, Options as Dictionary = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
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 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.

Raises exception 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.Constructor(Data as MemoryBlock, Options as Dictionary = nil, byref error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
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 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.

Raises exception 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.Constructor(File as FolderItem, Options as Dictionary = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
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.

Raises exception 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.

See also:

AVMutableMovieMBS.Constructor(File as FolderItem, Options as Dictionary = nil, byref error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
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.

Raises exception 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.

See also:

AVMutableMovieMBS.Constructor(Movie as AVMovieMBS = nil, Options as Dictionary = nil, byref error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
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.

Raises exception 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.

See also:

AVMutableMovieMBS.Constructor(URL as String, Options as Dictionary = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
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. Optional.

Raises exception 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.

See also:

AVMutableMovieMBS.Constructor(URL as String, Options as Dictionary = nil, byref error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
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. Optional.

Raises exception 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.

See also:

AVMutableMovieMBS.insertEmptyTimeRange(timeRange as CMTimeRangeMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Adds an empty time range to the target movie.

timeRange: The time range to be made empty. Note that you cannot add empty time ranges to the end of a movie.

AVMutableMovieMBS.insertTimeRange(timeRange as CMTimeRangeMBS, asset as AVAssetMBS, atTime as CMTimeMBS, copySampleData as Boolean, byref Error as NSErrorMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Inserts all the tracks of a timeRange of an asset into a movie.

timeRange: The time range of the asset to be inserted.
asset: An AVAsset object indicating the source of the inserted media. Only instances of AVURLAsset and AVComposition are supported. Must not be nil.
startTime: The time in the target movie at which the media is to be inserted.
copySampleData: A boolean value that indicates whether sample data is to be copied from the source to the destination during edits. If true, the sample data is written to the location specified by the track property mediaDataStorage if non-nil, or else by the movie property defaultMediaDataStorage if non-nil; if both are nil, the method will fail and return false. If false, sample data will not be written and sample references to the samples in their original container will be added as necessary.
Note that in this case, this method will fail if the source AVAsset is not able to provide sample reference information for the original container.
Error: If the insertion fails, an error object that describes the nature of the failure.

Returns A boolean value that indicates the success of the insertion.

This method may add new tracks to the target movie to ensure that all tracks of the asset are represented in the inserted timeRange.
Existing content at the specified startTime will be pushed out by the duration of timeRange.

AVMutableMovieMBS.metadata as AVMetadataItemMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
A collection of metadata stored by the movie.

The value of this property is an array of AVMetadataItem objects representing the collection of metadata stored by the movie.

AVMutableMovieMBS.mutableMovieTracks as AVMutableMovieTrackMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The tracks in a mutable movie.

The value of this property is an array of tracks the mutable movie contains; the tracks are of type AVMutableMovieTrack.

AVMutableMovieMBS.mutableMovieTracksWithMediaCharacteristic(mediaCharacteristic as string) as AVMutableMovieTrackMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Provides an array of AVMutableMovieTracks of the asset that present media with the specified characteristic.

mediaCharacteristic: The media characteristic according to which the receiver filters its AVMutableMovieTracks. (Media characteristics are defined in AVMediaFormat.h)
An array of AVMutableMovieTracks; may be empty if no tracks with the specified characteristic are available.
Becomes callable without blocking when the key "tracks" has been loaded.

AVMutableMovieMBS.mutableMovieTracksWithMediaType(mediaType as string) as AVMutableMovieTrackMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Provides an array of AVMutableMovieTracks of the asset that present media of the specified media type.

mediaType: The media type according to which the receiver filters its AVMutableMovieTracks. (Media types are defined in AVMediaFormat.h)
An array of AVMutableMovieTracks; may be empty if no tracks of the specified media type are available.
Becomes callable without blocking when the key "tracks" has been loaded.

AVMutableMovieMBS.mutableMovieTrackWithTrackID(ID as Integer) as AVMutableMovieTrackMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Provides an instance of AVMutableMovieTrack that represents the track of the specified trackID.

ID: The trackID of the requested AVMutableMovieTrack.

An instance of AVMutableMovieTrack; may be nil if no track of the specified trackID is available.
Becomes callable without blocking when the key "tracks" has been loaded.

AVMutableMovieMBS.mutableTrackCompatibleWithTrack(track as AVAssetTrackMBS) as AVMutableMovieTrackMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Provides a reference to a track of a mutable movie into which any time range of an AVAssetTrack can be inserted (via insertTimeRange:ofTrack).

track: A reference to the AVAssetTrack from which a time range may be inserted.
Returns An AVMutableMovieTrack that can accommodate the insertion.
If no such track is available, the result is nil. A new track of the same media type as the AVAssetTrack can be created via addMutableTrackWithMediaType, and this new track will be compatible.

For best performance, the number of tracks in a movie should be kept to a minimum, corresponding to the number for which media data must be presented in parallel. If media data of the same type is to be presented serially, even from multiple assets, a single track of that media type should be used. This method, mutableTrackCompatibleWithTrack, can help the client to identify an existing target track for an insertion.

AVMutableMovieMBS.removeTimeRange(timeRange as CMTimeRangeMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Removes a specified time range from a movie.

timeRange: The time range to be removed.

AVMutableMovieMBS.removeTrack(track as AVMovieTrackMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Removes a track from the target movie.

track: The track to be removed.

AVMutableMovieMBS.scaleTimeRange(timeRange as CMTimeRangeMBS, duration as CMTimeMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Changes the duration of a time range of a movie.

timeRange: The time range to be scaled.
duration: The new duration of the time range.

AVMutableMovieMBS.setMetadata(items() as AVMetadataItemMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVMovie MBS AVFoundation Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the metadata.

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


The biggest plugin in space...