Class

AVVideoCompositionCoreAnimationTool

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

Declaration

class 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 isRemovedOnCompletion to false on animations so they are not automatically removed;

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

Topics

Creating a Composition Tool

init(additionalLayer: CALayer, asTrackID: CMPersistentTrackID)

Adds a Core Animation layer to the video composition.

init(postProcessingAsVideoLayer: CALayer, in: CALayer)

Composes the composited video frame with a Core Animation layer.

init(postProcessingAsVideoLayers: [CALayer], in: CALayer)

Composes the composited video frames with the Core Animation layer.

Relationships

Inherits From

Conforms To

See Also

Video Composition

class AVVideoComposition

An object that represents an immutable video composition.

class AVMutableVideoComposition

An object that represents a mutable video composition.

class AVAsynchronousCIImageFilteringRequest

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

class AVAsynchronousVideoCompositionRequest

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

class AVMutableVideoCompositionInstruction

An operation performed by a compositor.

class AVMutableVideoCompositionLayerInstruction

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

class AVVideoCompositionInstruction

An operation performed by a compositor.

class AVVideoCompositionLayerInstruction

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

class AVVideoCompositionRenderContext

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