<!--
{
  "availability" : [
    "iOS: 14.0.0 - 14.0.0",
    "iPadOS: 14.0.0 - 14.0.0",
    "macCatalyst: 14.0.0 - 14.0.0",
    "macOS: 11.0.0 - 11.0.0",
    "tvOS: 14.0.0 - 14.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNVideoProcessor/analyze(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNVideoProcessor(im)analyzeWithTimeRange:error:"
  },
  "title" : "analyze(with:)"
}
-->

# analyze(with:)

Analyzes the specifed time range of the video content.

```
func analyze(with timeRange: CMTimeRange) throws
```

## Parameters

`timeRange`

The time range to analyze. The value specified must be within the time range of the video asset.

## Discussion

The system executes this method synchronously, so you should typically call it from a separate dispatch queue. It returns when the video processor finishes analyzing the specified time range, or if an error prevented the processing.

---

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)