<!--
{
  "availability" : [
    "iOS: 13.0.0 - 18.0.0",
    "iPadOS: 13.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.15.0 - 15.0.0",
    "tvOS: 13.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMutableVideoComposition/init(propertiesOf:prototypeInstruction:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMutableVideoComposition(cm)videoCompositionWithPropertiesOfAsset:prototypeInstruction:"
  },
  "title" : "init(propertiesOf:prototypeInstruction:)"
}
-->

# init(propertiesOf:prototypeInstruction:)

Creates a mutable video composition with the specified asset properties and a prototype video composition instruction.

```
init(propertiesOf asset: AVAsset, prototypeInstruction: AVVideoCompositionInstruction)
```

## Parameters

`asset`

The asset for which to create a video composition. Load the asset’s [`duration`](/documentation/AVFoundation/AVAsset/duration) and [`tracks`](/documentation/AVFoundation/AVAsset/tracks) properties before invoking this method.

`prototypeInstruction`

A video composition instruction to use as a prototype.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)