A capture output that records video and audio to a QuickTime movie file.
- iOS 4.0+
- macOS 10.7+
- UIKit for Mac 13.0+Beta
This class is the movie file equivalent of
AVCapture. Use it to export or save movie files from capture session content.
time of the first track segment must be
zero, and the
time of each subsequent track segment must equal
CMTime, when passing in the previous
time. You can use
validate to ensure that an array of track segments conforms to this rule.
Starting in iOS 12, photo formats no longer list the
AVCapture as being unsupported. If you construct a session with a photo format as input and a movie file output, you can record movies. The resolution of the video track in the movie follows the conventions established by the
AVCapture; namely, when using the photo preset, you receive video buffers with size approximating the screen size. Video outputs are a proxy for photo preview in this configuration.
If you set the
AVCapture format to a high-resolution photo format, you receive full-resolution (5, 8, or 12 MP depending on the device) video buffers into your movie. If the capture session’s
automatically property is
true, the session selects sRGB as the video colorspace in your movie. You can override this behavior by adding an
AVCapture to your session and configuring its photo format or
photo preset for a photo output.