---
title: "availableVideoCodecTypesForAssetWriter(writingTo:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturevideodataoutput/availablevideocodectypesforassetwriter(writingto:)"
---

# availableVideoCodecTypesForAssetWriter(writingTo:)

The video codecs that the output supports for writing video to the output file.

## Declaration

```swift
func availableVideoCodecTypesForAssetWriter(writingTo outputFileType: AVFileType) -> [AVVideoCodecType]
```

## Parameters

- `outputFileType`: The UTI of the output file type.

## Return Value

Return Value An array of video codecs.

## See Also

### Retrieving supported video types

- [availableVideoPixelFormatTypes](avfoundation/avcapturevideodataoutput/availablevideopixelformattypes.md)
- [availableVideoCodecTypes](avfoundation/avcapturevideodataoutput/availablevideocodectypes.md)
- [AVVideoCodecType](avfoundation/avvideocodectype.md)
