---
title: "splitPoints(forFrameStart:duration:serviceCount:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [provideo encoder extensions 1.0+]
path: "professional_video_applications/compressorextensionencoder/splitpoints(forframestart:duration:servicecount:)"
---

# splitPoints(forFrameStart:duration:serviceCount:)

Determines the source media segments based on the number of available encoder services.

## Declaration

```swift
func splitPoints(forFrameStart start: Int64, duration numFrames: Int64, serviceCount: Int32) -> [Any]!
```

## Parameters

- `start`: The frame at which to start segmenting.
- `numFrames`: The number of frames in the source media.
- `serviceCount`: The number of encoder services available to process the source media.

## Return Value

Return Value An array of frame numbers indicating the start of each segment.

## Discussion

Discussion In a distributed process environment, the Compressor app assigns source media segments to the available encoder instances to process them concurrently. If your extension supports segmenting, the Compressor app calls this method to determine segments of the source media. Segmenting the source media is beneficial for distributed encoding, and for local encoding if you enable additional Compressor app instances. note: When determining source media segments, specify multiple segments for video data and a single segment for complete audio data.
