Instance Property

instructions

The video composition instructions.

Declaration

@property(nonatomic, readonly, copy) NSArray<id<AVVideoCompositionInstruction>> *instructions;

Discussion

The array contains instances of AVVideoCompositionInstruction. For the first instruction in the array, timeRange.start must be less than or equal to the earliest time for which playback or other processing will be attempted (typically kCMTimeZero). For subsequent instructions, timeRange.start must be equal to the prior instruction's end time. The end time of the last instruction must be greater than or equal to the latest time for which playback or other processing will be attempted (typically be the duration of the asset with which the instance of AVVideoComposition is associated).

See Also

Configuring Video Composition Properties

frameDuration

A time interval for which the video composition should render composed video frames.

renderSize

The size at which the video composition should render.

renderScale

The scale at which the video composition should render.

AVVideoCompositionInstruction

Methods you can implement to represent operations to be performed by a compositor.

animationTool

A video composition tool to use with Core Animation in offline rendering.

customVideoCompositorClass

A custom compositor class to use.

sourceTrackIDForFrameTiming

A value that indicates whether frame timing for the video composition is derived from the source's asset track.

colorPrimaries

The color primaries used for video composition.

colorTransferFunction

The transfer function used for video composition.

colorYCbCrMatrix

The YCbCr matrix used for video composition.