Returns a new writer input object initialized with the specified media type and output settings.
- iOS 4.1+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
The type of samples to be accepted by the input object. For a list of media types, see AVFoundation Constants.
The settings used for encoding the media appended to the output. Pass
nilto specify that the appended samples should not be re-encoded.
Audio output settings keys are defined in AV Foundation Audio Settings Constants. Video output settings keys are defined in AVFoundation Constants. Video output settings with keys from
<Coreare not currently supported.
Video/CVPixel Buffer .h>
A new writer input object that can accept samples of the specified media type and write them to the output file.
Each new input accepts data for a new track of the asset writer’s output file. You add an input to an asset writer using the
output instructs the input to pass through appended samples, doing no processing before they are written to the output file. This is useful if, for example, you are appending buffers that are already in a desirable compressed format.