---
title: "setupAnalysis(for:frameDuration:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.1+]
path: "professional_video_applications/fxanalyzer/setupanalysis(for:frameduration:)"
---

# setupAnalysis(for:frameDuration:)

Completes any setup work before starting the frame analysis.

## Declaration

```swift
func setupAnalysis(for analysisRange: CMTimeRange, frameDuration: CMTime) throws
```

## Parameters

- `analysisRange`: The analysis time range.
- `frameDuration`: The frame duration.

## Mentioned in

Analyzing media

## See Also

### Analyzing Frames in Your Plug-in

- [desiredAnalysisTimeRange(_:forInputWith:)](professional_video_applications/fxanalyzer/desiredanalysistimerange(_:forinputwith:).md)
- [analyzeFrame(_:at:)](professional_video_applications/fxanalyzer/analyzeframe(_:at:).md)
- [cleanupAnalysis()](professional_video_applications/fxanalyzer/cleanupanalysis().md)
