Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVAssetReaderVideoCompositionOutputMBS class.

AVAssetReaderVideoCompositionOutputMBS.Constructor(videoTracks() as AVAssetTrackMBS, videoSettings as dictionary)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an instance of AVAssetReaderVideoCompositionOutput for reading composited video from the specified video tracks, using optional video settings.

videoTracks: An array of AVAssetTrack objects from which the created object should read video frames for compositing.
It is an error to include tracks of media types other than AVMediaTypeVideo.
videoSettings: A dictionary of video settings to be used for sample output, or nil if you want to receive decoded samples in a convenient uncompressed format, with properties determined according to the properties of the specified video tracks.
You use keys from <CoreVideo/CVPixelBuffer.h>, depending on the output format you want.
Initialization will fail if the video settings cannot be used with the specified video tracks.
In that case handle property will be 0.

AVAssetReaderVideoCompositionOutputMBS.customVideoCompositor as AVVideoCompositingMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the custom video compositor instance used by the receiver, if any. (read-only)

The custom video compositor instance that is used during image generation is accessible via this property after the value of videoComposition is set to an AVVideoComposition instance that specifies a custom video compositor class. Any additional communication between the application and that instance of the custom video compositor, if any is required for configuration or other purposes, can only occur once that has happened.

If the value of videoComposition is changed from an AVVideoComposition that specifies a custom video compositor class to another instance of AVVideoComposition that specifies the same custom video compositor class, the instance of the custom video compositor that was previously created will receive the renderContextChanged message and remain in use for subsequent image generation.

This property is nil if there is no video compositor, or if the internal video compositor is in use.
Available in OS X v10.9 and later.

AVAssetReaderVideoCompositionOutputMBS.videoComposition as AVVideoCompositionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The video composition to use for the output.

The value is an AVVideoComposition object that can be used to specify the visual arrangement of video frames read from each source track over the timeline of the source asset.

See AVVideoComposition for options for configuring a video composition.
(Read and Write computed property)

AVAssetReaderVideoCompositionOutputMBS.videoSettings as dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The video settings used by the output. (read-only)

A value of nil indicates that the receiver will return video frames in a convenient uncompressed format, with properties determined according to the properties of the receiver's video tracks.

The dictionary's keys are from <CoreVideo/CVPixelBuffer.h>.

AVAssetReaderVideoCompositionOutputMBS.videoTracks as AVAssetTrackMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The tracks from which the output reads composited video. (read-only)

The array contains AVAssetTrack objects owned by the target asset reader's asset.

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


The biggest plugin in space...