AVAssetWriterInput
An object that appends media samples to a track in an asset writer’s output file.
Declaration
class AVAssetWriterInputMentioned in
Overview
Create an asset writer input to write a single track of media, and optional track-level metadata, to the output file. To write multiple concurrent tracks with ideal interleaving of media data, observe the value of the isReadyForMoreMediaData property of each input.
You can use an asset writer input to create tracks in a QuickTime movie file that aren’t self-contained, and instead reference sample data that exists in another file.
Topics
Creating an input
Configuring presentation
Configuring language support
Configuring metadata
Configuring media data layout
preferredMediaChunkAlignmentpreferredMediaChunkDurationsampleReferenceBaseURLmediaDataLocationAVAssetWriterInput.MediaDataLocation
Configuring track associations
Appending media samples
expectsMediaDataInRealTimeisReadyForMoreMediaDatarequestMediaDataWhenReady(on:using:)append(_:)markAsFinished()AVAssetWriterInput.SampleBufferReceiverAVAssetWriterInput.PixelBufferReceiverAVAssetWriterInput.TaggedPixelBufferGroupReceiverAVAssetWriterInput.MetadataReceiverAVAssetWriterInput.CaptionReceiver
Performing multiple-pass encoding
canPerformMultiplePassescurrentPassDescriptionAVAssetWriterInputPassDescriptionmarkCurrentPassAsFinished()performsMultiPassEncodingIfSupportedrespondToEachPassDescription(on:using:)AVAssetWriterInput.MultiPassController
Inspecting an input
See Also
Media writing
Converting projected video to Apple Projected Media ProfileConverting side-by-side 3D video to multiview HEVC and spatial videoAdding a display mask rectangle metadata track to a movie fileWriting fragmented MPEG-4 files for HTTP Live StreamingCreating spatial photos and videos with spatial metadataTagging media with video color informationEvaluating an app’s video colorAVOutputSettingsAssistantAVAssetWriterAVAssetWriterInputPixelBufferAdaptorAVAssetWriterInputTaggedPixelBufferGroupAdaptorAVAssetWriterInputMetadataAdaptorAVAssetWriterInputGroup