---
title: availableVideoCodecTypes
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturevideodataoutput/availablevideocodectypes
---

# availableVideoCodecTypes

The video codecs that the output supports.

## Declaration

```swift
var availableVideoCodecTypes: [AVVideoCodecType] { get }
```

## Discussion

Discussion The value contains an array of video codecs that the output supports. Specify the codec it uses by setting a supported value for the AVVideoCodecKey entry in its videoSettings dictionary. The first format in the returned list is the most efficient output format.

## See Also

### Retrieving supported video types

- [availableVideoPixelFormatTypes](avfoundation/avcapturevideodataoutput/availablevideopixelformattypes.md)
- [availableVideoCodecTypesForAssetWriter(writingTo:)](avfoundation/avcapturevideodataoutput/availablevideocodectypesforassetwriter(writingto:).md)
- [AVVideoCodecType](avfoundation/avvideocodectype.md)
