<!--
{
  "availability" : [
    "FxPlug: 4.1.0 -",
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxAnalyzer/setupAnalysis(for:frameDuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxAnalyzer(im)setupAnalysisForTimeRange:frameDuration:error:"
  },
  "title" : "setupAnalysis(for:frameDuration:)"
}
-->

# setupAnalysis(for:frameDuration:)

Completes any setup work before starting the frame analysis.

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

## Parameters

`analysisRange`

The analysis time range.

`frameDuration`

The frame duration.

---

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)