Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVMutableVideoCompositionMBS class.

AVMutableVideoCompositionMBS.mutableVideoComposition as AVMutableVideoCompositionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a new mutable video composition.

Some examples using this method:

AVMutableVideoCompositionMBS.mutableVideoCompositionWithPropertiesOfAsset(asset as AVAssetMBS) as AVMutableVideoCompositionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a new mutable video composition with the specified asset properties.

asset: An instance of AVAsset. Ensure that the duration and tracks properties of the asset are already loaded before invoking this method.
Returns a newly created and initialized instance of AVMutableVideoComposition.

The returned AVMutableVideoComposition has instructions that respect the spatial properties and time ranges of the specified asset's video tracks.

It also has the following values for its properties:

  • A value for frameDuration short enough to accommodate the greatest nominalFrameRate among the asset's video tracks. If the nominalFrameRate of all of the asset's video tracks is 0, a default framerate of 30fps is used.
  • If the specified asset is an instance of AVComposition, the renderSize is set to the naturalSize of the AVComposition; otherwise the renderSize will be set to a value that encompasses all of the asset's video tracks.
  • A renderScale of 1.0.
  • The animationTool property set to nil.

Available in OS X v10.9 and later.

Some examples using this method:

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


The biggest plugin in space...