---
title: outputFileTypeProfile
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avassetwriter/outputfiletypeprofile
---

# outputFileTypeProfile

A profile for the output file type.

## Declaration

```swift
var outputFileTypeProfile: AVFileTypeProfile? { get set }
```

## Discussion

Discussion The default value is nil, which indicates that the writer chooses an appropriate default profile for the output file type. If your app requires segment data that’s suitable for streaming, set the value to mpeg4AppleHLS or mpeg4CMAFCompliant to output CMAF-compliant mp4 data. You can’t change this value after writing starts.

## See Also

### Configuring segment writing

- [delegate](avfoundation/avassetwriter/delegate.md)
- [AVAssetWriterDelegate](avfoundation/avassetwriterdelegate.md)
- [preferredOutputSegmentInterval](avfoundation/avassetwriter/preferredoutputsegmentinterval.md)
- [initialSegmentStartTime](avfoundation/avassetwriter/initialsegmentstarttime.md)
- [flushSegment()](avfoundation/avassetwriter/flushsegment().md)
