Global Variable

AVVideoCodecKey

A key to access the name of the codec for compressing video.

Declaration

let AVVideoCodecKey: String

Discussion

The value for this key is an instance of NSString, equivalent to CMVideoCodecType. Use this key to set the video compression format to H.264, HEVC, or JPEG, depending on the video codec types available in AVCaptureMovieFileOutput. Check available video codec types by consulting availableVideoCodecTypes.

See Also

Video and Photo Codecs

struct AVVideoCodecType

A set of constants used to describe codecs for video capture.