<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetWritingPlanner/segmentBoundaryGuidelinesForVideo(codecType:encoderSpecification:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So21AVAssetWritingPlannerC12AVFoundationE33segmentBoundaryGuidelinesForVideo9codecType20encoderSpecificationSo09AVPlannedi7SegmentfG0aSo012AVVideoCodecK0a_SDySSs8Sendable_pGtFZ"
  },
  "title" : "segmentBoundaryGuidelinesForVideo(codecType:encoderSpecification:)"
}
-->

# segmentBoundaryGuidelinesForVideo(codecType:encoderSpecification:)

Returns segment boundary guidelines that help clients determine how to segment compression video tracks with best results.

```
static func segmentBoundaryGuidelinesForVideo(codecType: AVVideoCodecType, encoderSpecification: [String : any Sendable]) -> AVAssetWritingPlanner.SegmentBoundaryGuidelines
```

## Parameters

`codecType`

The output video codec type for the video track.

`encoderSpecification`

A dictionary of kVTVideoEncoderSpecification_* keys describing the video encoder. This is the same specification the client uses to compress the video track.

## Return Value

An AVAssetWritingPlanner.SegmentBoundaryGuidelines with the minimum frame count and duration for the given codec and encoder.

## Discussion

The encoderSpecification parameter here is the same encoder specification the client uses to compress the video track.

---

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)