<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlannedVideoSegmentConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlannedVideoSegmentConfiguration"
  },
  "title" : "AVPlannedVideoSegmentConfiguration"
}
-->

# AVPlannedVideoSegmentConfiguration

AVPlannedVideoSegmentConfiguration describes the requirements for a planned video segment in an incremental writing session executed by the AVAssetWritingPlanner.

```
class AVPlannedVideoSegmentConfiguration
```

## Overview

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

[`-  initWithNumberOfFrames:duration:`](/documentation/AVFoundation/AVPlannedVideoSegmentConfiguration/init(numberOfFrames:duration:))

Creates an instance of AVPlannedVideoSegmentConfiguration specifying the number of frames in and total duration of the segment.

### Inspecting the configuration

[`frameCount`](/documentation/AVFoundation/AVPlannedVideoSegmentConfiguration/frameCount)

The number of frames in this planned video segment.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`AVPlannedSegmentConfiguration`](/documentation/AVFoundation/AVPlannedSegmentConfiguration)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)