# Studio take (.lightair-take)

Source: https://docs.lightair.app/developers/formats/studio-take

> The folder a Studio take records into, with each screen and camera in its own file, the audio tracks, the pointer and key log, the scene, and the edit.

In short:
- A Studio take is a folder ending in `.lightair-take`, in the workspace's recordings folder.
- Each screen and camera is its own MP4, each mixer track its own WAV; `input.bin` logs the pointer, clicks and keys.
- `take.json` describes the files and lines them up; `scene.json` is the scene as it was; `edit.json` holds the Editor's changes.

In the app: Record button menu › Studio take; Library › Export package…; File › Add Existing Recordings…

A Studio take records the parts of a scene apart, for the Editor to put back together: each screen
and camera to its own file, the mixer's tracks, the pointer and keys, and where everything was.
Choose **Studio take** in the record button's menu, then record (`⌘R` or `Ctrl+R` on Windows).

The take goes into the workspace's recording folder (by default `~/Movies/Lightair` on macOS and
the Videos folder's `Lightair` on Windows), as a folder named for when it started:
`Studio take 2026-12-04 10.32.05.lightair-take`.

## The files

```text
Studio take 2026-12-04 10.32.05.lightair-take/
├─ screen.mp4              a recorded screen
├─ camera.mp4              a recorded camera
├─ Audio - Mic.wav         one file per recorded mixer track or bus
├─ input.bin               the pointer, clicks, scrolls and keys
├─ scene.json              the program scene when the take began
├─ layers/                 pictures copied from that scene
├─ take.json               what the take holds, written when it stops
└─ edit.json               the Editor's changes, once it's edited
```

### Video

Each screen and camera in the program scene is recorded as captured, without its effects, at its
own size, to its own fragmented MP4. A take that stops abruptly keeps what was written. The files
are named for their track: `screen.mp4` and `camera.mp4`, then `screen-2.mp4`, `camera-2.mp4` and
so on when the scene has more than one of each.

### Audio

Sound goes to WAV files named `Audio - <name>.wav`, one per mixer track marked **Record** and one
per bus marked **Record**; when nothing is marked, every track is recorded. Where each file taps
the track (before effects, before the fader or after it) and whether it's 32-bit float follow the
workspace's multitrack recording settings. A mono track recorded before the fader is a mono file.

### take.json

Written when the take stops. A take cut short (the app quit, the computer crashed) has no
`take.json`, but its video and `input.bin` are still readable.

```json
{
  "started_ms": 1796380325000,
  "duration_ms": 184250,
  "video": [
    { "name": "Screen", "kind": "screen", "file": "screen.mp4",
      "input": "0193a2c4-5e1f-7b3a-9c2d-000000000021", "width": 3024, "height": 1964 },
    { "name": "Camera", "kind": "camera", "file": "camera.mp4",
      "input": "0193a2c4-5e1f-7b3a-9c2d-000000000022", "width": 1920, "height": 1080 }
  ],
  "audio": ["Audio - Mic.wav"],
  "audio_tracks": [{ "file": "Audio - Mic.wav", "name": "Mic" }],
  "audio_start_ns": 81234567890123,
  "sample_rate": 48000,
  "input": "input.bin",
  "markers": [{ "at_ms": 61200, "label": "Marker 1" }],
  "pauses_ms": [90500]
}
```

| Field | Meaning |
|---|---|
| `started_ms` | When it started, Unix time in milliseconds. |
| `duration_ms` | How long it recorded, pauses left out. |
| `video` | One entry per video file: its track `name`, `kind` (`screen` or `camera`), `file` (in the folder), `input` (the id of the source it recorded, as in the workspace's `sources.json`), `width` and `height`. |
| `audio` | The audio files' names. |
| `audio_tracks` | Each audio file with the `name` of the track or bus it holds. |
| `audio_start_ns` | When the audio files' first sample played, on Lightair's clock in nanoseconds: lines them up with the video. |
| `sample_rate` | The audio files' sample rate. |
| `input` | The input log's file name. |
| `markers` | Markers added while recording: `at_ms` from the start, and a `label`. |
| `pauses_ms` | Where the take was paused, in milliseconds on the files' clock. Each is a cut in the files. |

### scene.json

The program scene as it was when the take began, so the Editor can rebuild it: the recorded
screens and cameras where they were, and what wasn't recorded as objects of its own.

```json
{
  "canvas": [1920, 1080],
  "objects": [
    { "name": "Backdrop", "x": 0, "y": 0, "w": 1, "h": 1, "rotation": 0, "opacity": 1,
      "what": { "type": "image", "file": "layers/0-backdrop.png" } },
    { "name": "Screen", "x": 0.05, "y": 0.05, "w": 0.9, "h": 0.9, "rotation": 0, "opacity": 1,
      "what": { "type": "recorded", "source": "0193a2c4-5e1f-7b3a-9c2d-000000000021" } }
  ]
}
```

`canvas` is the primary canvas's size in pixels. `objects` are the scene's visible objects, bottom
first. `x`, `y`, `w` and `h` are the object's box as fractions of the canvas; `rotation` is in
degrees clockwise. `what` says what it showed, by `type`:

| `type` | Fields | Meaning |
|---|---|---|
| `recorded` | `source` | A recorded screen or camera: the `input` of its entry in `take.json`'s `video`. |
| `image` | `file` | A picture, copied into the take's `layers/` folder. |
| `video` | `path` | A video file, where it is on disk. |
| `text` | `text`, `size`, `color`, `bold` | Text: its words, size in canvas pixels and colour as `0xRRGGBB`. |
| `colour` | `color`, `alpha` | A solid colour (`0xRRGGBB`) and its opacity. |
| `other` | `kind` | Something the Editor can't rebuild (a browser, a timer…): named, then left out. |

Microphones and other sound sources aren't objects here; their sound is in the audio files.

### input.bin

The pointer, clicks, scrolls, keys and pointer shapes, the same file on macOS and Windows. It's
written as the take records and flushed about once a second, so a take that stops abruptly keeps
its log up to the last flush. All numbers are little-endian.

**Header**, 16 bytes:

| Bytes | Content |
|---|---|
| 0–7 | `LAINPUT1` |
| 8–11 | Version, `u32`: `1` |
| 12–15 | Flags, `u32`: bit 0 set when clicks and keys were recorded (else the pointer only) |

**Records**, 24 bytes each, in time order:

| Bytes | Content |
|---|---|
| 0 | Kind, `u8` (below) |
| 1 | Button or shape, `u8` |
| 2–3 | Key code, `u16` |
| 4–7 | Unused (zero) |
| 8–15 | Time, `u64`: microseconds from the start, on the files' clock (pauses left out) |
| 16–19 | `a`, `f32` |
| 20–23 | `b`, `f32` |

| Kind | Record | `a`, `b` |
|---|---|---|
| 1 | Pointer moved | x, y |
| 2 | Button down (button 0 left, 1 right, 2 and up others) | x, y |
| 3 | Button up | x, y |
| 4 | Scroll | dx, dy |
| 5 | Key down (key code in bytes 2–3) | modifiers, 0 |
| 6 | Key up | modifiers, 0 |
| 7 | Pointer shape (in byte 1) | 0, 0 |
| 8 | The recorded display's top-left | x, y |
| 9 | The recorded display's size | width, height |

Positions are in display points. Kinds 8 and 9 come first: the frame of the display (or window)
the screen track recorded, so positions can be mapped onto the screen video.

Modifiers are bits: `1` Shift, `2` Control, `4` Alt (Option), `8` Command on macOS or the Windows
key on Windows. Key codes are the platform's own. Pointer shapes: `0` arrow, `1` I-beam, `2` hand,
`3` crosshair, `4` resize left-right, `5` resize up-down, `6` wait, `7` not allowed, `8` move.

A record of an unknown kind, or a last record cut short, ends the log when it's read.

### edit.json

What the Editor changes about the take. It's written once the take is edited, by the desktop's
Editor or by Lightair Editor on a paired phone or tablet. Times are in milliseconds of the take,
not of the result.

```json
{
  "version": 1,
  "clips": [{ "start_ms": 0, "end_ms": 184250, "speed": 1.0 }],
  "zooms": [{ "start_ms": 12000, "end_ms": 18000, "scale": 2.0,
              "focus": { "kind": "pointer" }, "auto": true }],
  "masks": [{ "start_ms": 40000, "end_ms": 52000, "x": 0.6, "y": 0.1, "w": 0.3, "h": 0.08 }],
  "pointer": { "style": 0, "size": 1.5, "smoothing": 0.5, "hidden": false, "clicks": 2 },
  "look": { "backdrop": 0, "padding": 0.07, "radius": 0.015, "shadow": 0.5 },
  "size": [1920, 1080]
}
```

| Field | Meaning |
|---|---|
| `version` | `1`. |
| `clips` | The stretches kept, in order, each played at `speed`. Empty: the whole take. |
| `zooms` | Magnify the screen `scale` times from `start_ms` to `end_ms`, around `focus`: `{"kind": "pointer"}` follows the pointer, `{"kind": "point", "x", "y"}` is a fixed point as fractions of the screen. `auto` marks zooms made by automatic zoom, which it may make again. |
| `masks` | Areas hidden for a while (passwords, messages), as fractions of the screen, so they stay on the same spot through zooms. |
| `pointer` | How the pointer is drawn: `style` (0 pointer, 1 dot, 2 ring), `size`, `smoothing` (0 exact to 1 a slow glide), `hidden`, and `clicks` (0 none, 1 circle, 2 ripple). |
| `look` | The frame around the screen: a `backdrop` gradient, `padding` as a fraction of the result's height, corner `radius` as a fraction of the screen's short side, and `shadow`. |
| `size` | The result's width and height in pixels. |

## Share a take

In the **Library**, a take's menu has **Export package…**: it copies the take's video, audio,
`input.bin` and `take.json` into a new `<title>.lightair-take` folder where you choose, with its
edit as `edit.json`.

To add a take someone gave you, use **File › Add Existing Recordings…** and pick the folder that
holds it. Each `.lightair-take` folder in it becomes one item in the Library, with all its files.

## Related

- [Workspace folder (.lightair)](/developers/formats/workspace)
- [File formats](/desktop/reference/file-formats)
- [Pairing](/mobile/get-started/pairing)
