You use an
AVAsset to append video samples packaged as CVPixelBuffer objects to a single
- iOS 4.1+
- macOS 10.7+
- tvOS 4.1+
AVAsset provide a CVPixelBufferPool that you can use to allocate pixel buffers for writing to the output file. Using the provided pixel buffer pool for buffer allocation is typically more efficient than appending pixel buffers allocated using a separate pool.