<!--
{
  "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/AVAssetWritingPlanner/SegmentBoundaryGuidelines",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@SA@AVPlannedVideoSegmentBoundaryGuidelines"
  },
  "title" : "AVAssetWritingPlanner.SegmentBoundaryGuidelines"
}
-->

# AVAssetWritingPlanner.SegmentBoundaryGuidelines

AVPlannedVideoSegmentBoundaryGuidelines provides guidance on determining planned segment boundaries for a video track in an incremental writing session executed by the AVAssetWritingPlanner.

```
struct SegmentBoundaryGuidelines
```

## Overview

The properties provide guidance on determining segment boundaries for a video track in an incremental writing session. All conditions should be supported for best results. The client should choose frame count and minimum duration that meet the minimum requirement. However, the client should also consider the balance between overhead caused by completing and saving states for small segments, and the cost of having to redo a large segment if the incremental session stopped in the middle of a segment due to errors or crashes. For example, use 1 minute segments for 4K60fps video.

## Topics

### Initializers

[`init()`](/documentation/AVFoundation/AVAssetWritingPlanner/SegmentBoundaryGuidelines/init())

[`init(minimumFrameCount: Int, minimumDuration: CMTime)`](/documentation/AVFoundation/AVAssetWritingPlanner/SegmentBoundaryGuidelines/init(minimumFrameCount:minimumDuration:))

### Instance Properties

[`var minimumDuration: CMTime`](/documentation/AVFoundation/AVAssetWritingPlanner/SegmentBoundaryGuidelines/minimumDuration)

The minimum duration of each incremental segment. kCMTimeZero means there is no minimum segment duration requirement. kCMTimePositiveInfinity means that incremental segmentation is not supported for this codecType.

[`var minimumFrameCount: Int`](/documentation/AVFoundation/AVAssetWritingPlanner/SegmentBoundaryGuidelines/minimumFrameCount)

The minimum number of frames in each incremental segment. 0 means that incremental segmentation is not supported for this codecType. 1 means there is no frame count restriction for incremental encoding for this codecType. Using 1 for segment frame count is not recommended because of the performance overhead, so the client should choose a value that represents a reasonable amount of work.

## Relationships

### Conforms To

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

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

---

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)