Contents

AVVideoComposition

An object that describes how to compose video frames at particular points in time.

Declaration

class AVVideoComposition

Overview

If you use the built-in video compositor, the instructions a video composition contain can specify a spatial transformation, an opacity value, and a cropping rectangle for each video source. This values can vary over time by applying linear ramping functions.

You can create a custom video compositor by implementing the AVVideoCompositing protocol. The system provides the custom video compositor with pixel buffers for each of its video sources during playback, and can perform arbitrary graphical operations on them to produce visual output.

Topics

Creating a video composition

Inspecting the video composition

Validating the time range

Reading instructions

Identifying source tracks

Configuring HDR metadata

Initializers

See Also

Built-in video compositing