Videos
Get the beats of the background music
Changed onReturns the tempo, every beat and every bar's first beat (downbeat) of the video's background music, in ms on the video's playback timeline: the track starts at 0 and restarts every trackDurationMs until the video ends, so the beats repeat with it. Use them to cut, start overlays or animate on the beat. Each track is analyzed once and cached; the first request for a new track can take a few seconds, and answers 503 unavailable if the analysis is still running, so retry.
get/v1/videos/{id}/background-music/beats
Request
- Base URLhttps://api.tella.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Unique video identifier
Example:vid_abc123def456
Response
OK
Example response
{
"beatsMs": [
512,
1012,
1512,
2012
],
"beatsPerBar": 4,
"bpm": 120,
"confidence": 0.86,
"downbeatsMs": [
512,
2512
],
"durationMs": 95200,
"trackDurationMs": 180036
}Changes
- info
endpoint added
- info