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 |
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 |
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. |
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVMovie | MBS AVFoundation Plugin | 16.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
- Constructor(Data as MemoryBlock, Options as Dictionary = nil)
- Constructor(Data as MemoryBlock, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(File as FolderItem, Options as Dictionary = nil)
- Constructor(File as FolderItem, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(Movie as AVMovieMBS = nil, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(URL as String, Options as Dictionary = nil)
- Constructor(URL as String, Options as Dictionary = nil, byref error as NSErrorMBS)
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 |
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:
- Constructor
- Constructor(Data as MemoryBlock, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(File as FolderItem, Options as Dictionary = nil)
- Constructor(File as FolderItem, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(Movie as AVMovieMBS = nil, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(URL as String, Options as Dictionary = nil)
- Constructor(URL as String, Options as Dictionary = nil, byref error as NSErrorMBS)
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 |
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:
- Constructor
- Constructor(Data as MemoryBlock, Options as Dictionary = nil)
- Constructor(File as FolderItem, Options as Dictionary = nil)
- Constructor(File as FolderItem, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(Movie as AVMovieMBS = nil, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(URL as String, Options as Dictionary = nil)
- Constructor(URL as String, Options as Dictionary = nil, byref error as NSErrorMBS)
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 |
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:
- Constructor
- Constructor(Data as MemoryBlock, Options as Dictionary = nil)
- Constructor(Data as MemoryBlock, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(File as FolderItem, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(Movie as AVMovieMBS = nil, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(URL as String, Options as Dictionary = nil)
- Constructor(URL as String, Options as Dictionary = nil, byref error as NSErrorMBS)
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 |
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:
- Constructor
- Constructor(Data as MemoryBlock, Options as Dictionary = nil)
- Constructor(Data as MemoryBlock, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(File as FolderItem, Options as Dictionary = nil)
- Constructor(Movie as AVMovieMBS = nil, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(URL as String, Options as Dictionary = nil)
- Constructor(URL as String, Options as Dictionary = nil, byref error as NSErrorMBS)
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 |
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:
- Constructor
- Constructor(Data as MemoryBlock, Options as Dictionary = nil)
- Constructor(Data as MemoryBlock, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(File as FolderItem, Options as Dictionary = nil)
- Constructor(File as FolderItem, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(URL as String, Options as Dictionary = nil)
- Constructor(URL as String, Options as Dictionary = nil, byref error as NSErrorMBS)
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 |
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:
- Constructor
- Constructor(Data as MemoryBlock, Options as Dictionary = nil)
- Constructor(Data as MemoryBlock, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(File as FolderItem, Options as Dictionary = nil)
- Constructor(File as FolderItem, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(Movie as AVMovieMBS = nil, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(URL as String, Options as Dictionary = nil, byref error as NSErrorMBS)
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 |
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:
- Constructor
- Constructor(Data as MemoryBlock, Options as Dictionary = nil)
- Constructor(Data as MemoryBlock, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(File as FolderItem, Options as Dictionary = nil)
- Constructor(File as FolderItem, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(Movie as AVMovieMBS = nil, Options as Dictionary = nil, byref error as NSErrorMBS)
- Constructor(URL as String, Options as Dictionary = nil)
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 |
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 |
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. |
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 |
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 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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
The items on this page are in the following plugins: MBS AVFoundation Plugin.