<!--
{
  "availability" : [
    "iOS: 4.0.0 - 26.0.0",
    "iPadOS: 4.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.7.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMutableVideoCompositionInstruction",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMutableVideoCompositionInstruction"
  },
  "title" : "AVMutableVideoCompositionInstruction"
}
-->

# AVMutableVideoCompositionInstruction

A mutable video composition instruction subclass.

```
class AVMutableVideoCompositionInstruction
```

## Overview

An [`AVVideoComposition`](/documentation/AVFoundation/AVVideoComposition) object maintains an array of [`instructions`](/documentation/AVFoundation/AVVideoComposition/instructions) to perform its composition.

## Topics

### Creating an instruction

[`videoCompositionInstruction`](/documentation/AVFoundation/AVMutableVideoCompositionInstruction/videoCompositionInstruction)

Returns a new mutable video composition instruction.

### Configuring the instructions

[`backgroundColor`](/documentation/AVFoundation/AVMutableVideoCompositionInstruction/backgroundColor)

The background color of the composition.

[`layerInstructions`](/documentation/AVFoundation/AVMutableVideoCompositionInstruction/layerInstructions)

Instructions that specify how to layer and compose video frames from source tracks.

[`timeRange`](/documentation/AVFoundation/AVMutableVideoCompositionInstruction/timeRange)

The time range to which the instruction applies.

[`enablePostProcessing`](/documentation/AVFoundation/AVMutableVideoCompositionInstruction/enablePostProcessing)

A Boolean value that indicates whether the instruction requires post processing.

### Configuring source tracks

[`requiredSourceSampleDataTrackIDs`](/documentation/AVFoundation/AVMutableVideoCompositionInstruction/requiredSourceSampleDataTrackIDs)

The track identifiers of source sample data that the compositor requires to compose frames for the instruction.



---

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)