---
title: "setChapters(_:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [provideo encoder extensions 1.0+]
path: "professional_video_applications/compressorextensionencoder/setchapters(_:)"
---

# setChapters(_:)

Sets chapter markers of an encoded file from the contents of the input dictionary.

## Declaration

```swift
func setChapters(_ chapters: [[AnyHashable : Any]]!)
```

## Parameters

- `chapters`: An array of source media chapter markers.

## See Also

### Setting Encoding Values

- [setSettings(_:)](professional_video_applications/compressorextensionencoder/setsettings(_:).md)
- [setAnnotations(_:)](professional_video_applications/compressorextensionencoder/setannotations(_:).md)
