> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/annotations/video-annotation.md). Agents can also search and read this documentation through its [MCP server](https://docs.unitlab.ai/~gitbook/mcp).

# Video annotation

Track objects through video frames, label actions on the timeline, and use tracking and interpolation to label long clips faster.

Label objects and actions across every frame of a video. You draw a shape once, let tracking or interpolation follow the object, and correct only the frames where it goes wrong. The timeline shows every track and every labeled action at a glance.

![Egocentric factory video: two hands holding smartwatches, a test pad, and the Visible action timeline below](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FkHdIrK0amYAmpKjn7q1e%2Fvideo-timeline-hero.webp?alt=media)

## When to use it

* Robotics and physical AI: hands, tools and parts in egocentric or fixed-camera footage.
* Action and activity labels: what is happening, from which frame to which frame.
* Object tracking for detection and re-identification datasets.
* State changes over time, such as a part going from **Normal** to **Rotated**.

## See it in action

Dozens of fish boxed and tracked through an underwater clip. Each fish keeps its own track on the timeline.

{% embed url="<https://homepage-files.s3.us-east-2.amazonaws.com/hero-videos/hero/auto-labeling-1.mp4>" %}

## Before you begin

* Upload your video files, for example MP4.
* Give each class the geometry you need: box, polygon, mask, keypoint, skeleton, line or image-space cuboid.
* Mark properties that change over time as **Dynamic** in the ontology.
* Agree on how to handle occlusion: one object keeps one track, even when it leaves and comes back.

## Example: hands and parts on an assembly bench

This example uses head-mounted camera footage of a worker testing smartwatches. It is labeled for training a robot to imitate the task.

| Label                                 | Type                       | What it captures                                                                   |
| ------------------------------------- | -------------------------- | ---------------------------------------------------------------------------------- |
| Hand                                  | Polygon track              | Left and right hand outlines in every frame                                        |
| watch body, wired test pad, clipboard | Bounding box tracks        | The parts the hands touch                                                          |
| Visible action                        | Dynamic text item property | What the worker does, such as "operate watch faces" or "transfer watches at bench" |
| Coworker action                       | Dynamic text item property | What another person in view does                                                   |

{% stepper %}
{% step %}

### Seed the object

Pause on a clear frame (`Space`). Choose a class and draw the shape, for example a polygon around the right hand.
{% endstep %}

{% step %}

### Track it

Select the shape and press `D` to track forward, `R` to track backward, or `Y` to track the whole clip. **Auto-Tracking** must be on in the **Tracking** menu.
{% endstep %}

{% step %}

### Fix the first mistake

Scrub the timeline. Stop at the first frame where the shape drifts or jumps to another object, correct it there, and track again from that frame.
{% endstep %}

{% step %}

### Label the actions

Move to the frame where an action starts and type it in **Visible action** under **Item properties**. Move to where it changes and type the next action. Each value becomes a labeled range on the timeline.
{% endstep %}

{% step %}

### Review and send

Play the clip at normal speed, check the start and end frame of every track and action, then click **Send to Review**.
{% endstep %}
{% endstepper %}

## Tracking and interpolation

Open the **Tracking** menu next to the playback controls.

![Tracking menu with Auto-Tracking and Interpolation switches](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2Fv2YhBRNvg9RabjIu5odr%2Fvideo-tracking-menu.webp?alt=media)

| Option            | What it does                                                           | Default |
| ----------------- | ---------------------------------------------------------------------- | ------- |
| **Auto-Tracking** | Predicts the object in later frames with an ML tracker when you track. | Off     |
| **Interpolation** | Fills the frames between two keyframes by blending the shapes.         | On      |

Tracking finds the object again in each frame, so it follows real motion. Interpolation draws straight transitions between your keyframes, so it is best for slow, even movement. Neither one decides identity for you: check frames where objects cross or disappear.

## Read the timeline

Each object has a row. A colored bar shows the frames where it exists, and the yellow diamonds are keyframes you set. Item properties such as **Visible action** have their own rows with a labeled range for each value, as in the screenshot at the top of this page.

Right-click a range to:

* **Auto track** forward, backward or across the full annotation, or **Stop Tracking**.
* **Show** or **Hide** the object.
* **Interpolate** or **Clear interpolation**.
* **Split range** (item properties only).
* **Delete**.

Expand the arrow beside an object to see its property rows. These rows are read-only: change a value in the inspector, not on the timeline.

## Change a property over time

A **Dynamic** class property can have a different value on different frames, for example **Pose: Normal** then **Rotated**.

1. Select the object and move to the first frame of the new state.
2. Change the value in the inspector.
3. Move to the next change and set the next value.
4. Expand the object's row to check where each value starts and ends.

![Selected box with Dynamic Defect Status and Pose fields beside their expanded timeline rows](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2Ff9iYLNxk7o9rPNl5PXAi%2Fvideo-dynamic-properties.webp?alt=media)

![Stepping through a box whose Pose changes from Normal to Rotated and back](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2F7W6xf6zlib5NIbvfJHbx%2Fvideo-dynamic-properties.gif?alt=media)

## Playback controls

| Control                                        | What it does                                             |
| ---------------------------------------------- | -------------------------------------------------------- |
| Frame box                                      | Type a frame number and press `Enter` to jump there.     |
| **Previous Frame** / **Play** / **Next Frame** | Step or play.                                            |
| Volume                                         | Mute or set the volume.                                  |
| **Zoom**                                       | Stretch the timeline from 1x to 10x to see short ranges. |
| **Loop**                                       | Repeat the video. On by default.                         |

## Keyboard shortcuts

| Action                          | Shortcut                  |
| ------------------------------- | ------------------------- |
| Play or pause                   | `Space`                   |
| Next / previous frame           | `→` / `←`                 |
| Next / previous video           | `Shift+→` / `Shift+←`     |
| Track forward / backward / full | `D` / `R` / `Y`           |
| Mute, volume up, volume down    | `Alt+M`, `Alt+↑`, `Alt+↓` |
| Pan the canvas                  | Hold `Alt` and drag       |
| Hide or show annotations        | `Shift+V`                 |
| All shortcuts                   | `H`                       |

## Tips

* Track short spans and check them before tracking further. A correction early in the clip saves many later.
* Set a keyframe just before and after an occlusion so interpolation has good shapes on both sides.
* Zoom the timeline before you set action boundaries; one frame matters when you train on actions.
* To label several cameras of one recording together, put them in a Data Group; see [Multi-camera video](https://docs.unitlab.ai/documentation/multimodal-annotations/multi-camera-video.md).

## Related

* [Multiview Workbench](https://docs.unitlab.ai/documentation/multimodal-annotations/multiview-workbench.md) · [Multi-camera video](https://docs.unitlab.ai/documentation/multimodal-annotations/multi-camera-video.md) · [LiDAR annotation](https://docs.unitlab.ai/documentation/annotations/lidar-annotation.md) · [Detect Anything](https://docs.unitlab.ai/documentation/auto-labeling/detect-anything-sam-1-sam-3.md) · [Bidirectional Auto-Tracking](https://docs.unitlab.ai/documentation/auto-labeling/bidirectional-auto-tracking.md)
