---
title: AVPlannedVideoSegmentConfiguration
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avplannedvideosegmentconfiguration
---

# AVPlannedVideoSegmentConfiguration

## Declaration

```swift
class AVPlannedVideoSegmentConfiguration
```

## Overview

Overview AVPlannedVideoSegmentConfiguration describes the requirements for a planned video segment in an incremental writing session executed by the AVAssetWritingPlanner. Use this class instead of the base class AVPlannedSegmentConfiguration if you are setting up AVAssetWriterInput to do video compression. AVAssetWritingPlanner will provide required video compression properties in its AVPlannedSegmentWritingRequest that are needed to prevent visual artifacts on segment boundaries.

## Topics

### Creating a video segment configuration

- [init(numberOfFrames:duration:)](avfoundation/avplannedvideosegmentconfiguration/init(numberofframes:duration:).md)

### Inspecting the configuration

- [frameCount](avfoundation/avplannedvideosegmentconfiguration/framecount.md)

## Relationships

### Inherits From

- [AVPlannedSegmentConfiguration](avfoundation/avplannedsegmentconfiguration.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Planned export

- [AVAssetTrackPlan](avfoundation/avassettrackplan.md)
- [AVAssetVideoTrackPlan](avfoundation/avassetvideotrackplan.md)
- [AVPlannedSegmentConfiguration](avfoundation/avplannedsegmentconfiguration.md)
- [AVPlannedSegmentWritingRequest](avfoundation/avplannedsegmentwritingrequest.md)
- [AVPlannedVideoSegmentWritingRequest](avfoundation/avplannedvideosegmentwritingrequest.md)
