Detect Beats
detect_beatsAnalyze a local audio or video file to estimate a steady beat grid and return BPM, phase-aligned beat times, confidence, and half/double-time alternatives—without changing your Premiere project.
Instructions
Estimate a steady beat grid from a local audio or video file without changing Premiere. FFmpeg decodes at most 30 minutes to a bounded mono analysis stream; local onset autocorrelation returns BPM, phase-aligned beat times, confidence, and half/double-time alternatives.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_beats | No | Maximum beat times returned (default: 500). | |
| media_path | Yes | Absolute path to an existing local audio or video file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool completed successfully. | |
| data | No | Tool-specific result data when ok is true. | |
| tool | Yes | The registered MCP tool name. | |
| error | No | Failure detail when ok is false. |