Smooth an object track
smooth_trackSmooth the jitter out of an object track: each corner's x and y over time, with a Kalman smoother, a one euro filter or a Savitzky-Golay fit. A corner that moves in a straight line at a steady speed is never moved. Lost frames are not moved and split the track into parts that are smoothed apart. Use it when a pinned picture shakes on a still surface; fix a drift or a jump with edit_track first. The answer ends with the track's new quality verdict and flagged ranges, and a preview_range call with overlays ["tracks"] that shows the changed frames on the film: run it to check. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | [from, to] seconds to smooth (atSpace says what they are). null smooths the whole track. | |
| clipId | Yes | The film clip that plays this asset, when space or atSpace needs one and several clips play it. null picks the clip that shows the asset at that time. | |
| method | Yes | kalman: a constant velocity Kalman smoother, good for camera shake on a steady move. one-euro: keeps quick moves sharp and calms slow drift and jitter. savgol: a moving quadratic fit, keeps curves and turns. | |
| atSpace | Yes | What this call's times are. null or source: seconds into the asset file. timeline: seconds of the film, read through the clip that plays the asset then (clipId to pick one). | |
| trackId | Yes | The object track id, as the tracking tool printed it or search_assets lists it (objectTracks). | |
| strength | Yes | 0 changes nothing, 1 is the strongest. 0.3 to 0.5 removes tracker jitter; higher smooths real motion away. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. |