Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

AVMutableVideoCompositionMBS.mutableVideoComposition as AVMutableVideoCompositionMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 18.4 Yes No No Yes, macOS only No
Function: Returns a new mutable video composition.

Feedback, Comments & Corrections

AVMutableVideoCompositionMBS.mutableVideoCompositionWithPropertiesOfAsset(asset as AVAssetMBS) as AVMutableVideoCompositionMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVFoundation MBS AVFoundation Plugin 18.4 Yes No No Yes, macOS only No
Function: Returns a new mutable video composition with the specified asset properties.
Notes:
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.

Feedback, Comments & Corrections

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




Links
MBS Xojo tutorial videos