---
title: AVPlannedVideoSegmentWritingRequest
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avplannedvideosegmentwritingrequest
---

# AVPlannedVideoSegmentWritingRequest

## Declaration

```swift
class AVPlannedVideoSegmentWritingRequest
```

## Overview

Overview AVPlannedVideoSegmentWritingRequest encompasses a request from the AVAssetWritingPlanner to the client code to write one incremental video track segment with compression. The client should respond to this request by writing the specified time range of data to a movie file at the specified segmentFileOutputURL, with start PTS zero.  The client’s writing work may be completed asynchronously.  If it completes successfully, it must call the -finish method on the request object.  If writing the segment fails, it must call the -finishWithError: method on the request object.

## Topics

### Inspecting the request

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

### Creating resumable compression sessions

- [createResumableCompressionSession(width:height:codecType:encoderSpecification:sourceImageBufferAttributes:outputHandler:)](avfoundation/avplannedvideosegmentwritingrequest/createresumablecompressionsession(width:height:codectype:encoderspecification:sourceimagebufferattributes:outputhandler:).md)

### Creating resumable writer inputs

- [makeResumableWriterInput(for:outputSettings:sourceFormatHint:)](avfoundation/avplannedvideosegmentwritingrequest/makeresumablewriterinput(for:outputsettings:sourceformathint:).md)

## Relationships

### Inherits From

- [AVPlannedSegmentWritingRequest](avfoundation/avplannedsegmentwritingrequest.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)
- [AVPlannedVideoSegmentConfiguration](avfoundation/avplannedvideosegmentconfiguration.md)
- [AVPlannedSegmentWritingRequest](avfoundation/avplannedsegmentwritingrequest.md)
