Class

AVMutableVideoCompositionLayerInstruction

An object used to modify the transform, cropping, and opacity ramps applied to a given track in a mutable composition.

Declaration

@interface AVMutableVideoCompositionLayerInstruction : AVVideoCompositionLayerInstruction

Topics

Creating an Instruction

+ videoCompositionLayerInstruction

Returns a new mutable video composition layer instruction.

+ videoCompositionLayerInstructionWithAssetTrack:

Creates a new mutable video composition layer instruction for the given track.

Configuring a Track ID

trackID

The track identifier of the source track to which the compositor applies the instruction.

Managing Properties

- setOpacity:atTime:

Sets the opacity value at a specific time within the time range of the instruction.

- setOpacityRampFromStartOpacity:toEndOpacity:timeRange:

Sets an opacity ramp to apply during a specified time range.

- setTransform:atTime:

Sets the transform value at a time within the time range of the instruction.

- setTransformRampFromStartTransform:toEndTransform:timeRange:

Sets a transform ramp to apply during a given time range.

Setting Crop Rectangle Values

- setCropRectangle:atTime:

Sets the crop rectangle value at a time within the time range of the instruction.

- setCropRectangleRampFromStartCropRectangle:toEndCropRectangle:timeRange:

Sets a crop rectangle ramp to apply during the specified time range.

Relationships

See Also

Video Composition

AVVideoComposition

An object that represents an immutable video composition.

AVMutableVideoComposition

An object that represents a mutable video composition.

AVAsynchronousCIImageFilteringRequest

An object that supprts using Core Image filters to process an individual video frame in a video composition.

AVAsynchronousVideoCompositionRequest

An object that contains the information necessary for a video compositor to render an output pixel buffer.

AVMutableVideoCompositionInstruction

An operation performed by a compositor.

AVVideoCompositionCoreAnimationTool

An object used to incorporate Core Animation into a video composition.

AVVideoCompositionInstruction

An operation performed by a compositor.

AVVideoCompositionLayerInstruction

An object used to modify the transform, cropping, and opacity ramps applied to a given track in a composition.

AVVideoCompositionRenderContext

An object that defines the context within which custom compositors render new output pixel buffers.