Class

AVVideoCompositionCoreAnimationTool

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

Declaration

@interface AVVideoCompositionCoreAnimationTool : NSObject

Overview

Any animations will be interpreted on the video's timeline, not real-time, so you should:

  1. Set animations’ beginTime property to AVCoreAnimationBeginTimeAtZero rather than 0 (which CoreAnimation replaces with CACurrentMediaTime);

  2. Set removedOnCompletion to NO on animations so they are not automatically removed;

  3. Avoid using layers that are associated with UIView objects.

Topics

Creating a Composition Tool

+ videoCompositionCoreAnimationToolWithAdditionalLayer:asTrackID:

Adds a Core Animation layer to the video composition.

+ videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer:

Composes the composited video frame with a Core Animation layer.

+ videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayers:inLayer:

Composes the composited video frames with the Core Animation layer.

Relationships

Inherits From

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.

AVMutableVideoCompositionLayerInstruction

An object used to modify the transform, cropping, and opacity ramps applied to a given track in a mutable 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.