# Replay buffer and clips

Source: https://docs.lightair.app/desktop/record-and-edit/replay-and-clips

> Keep the last moments of your show in memory, save them as a clip with one click, and play the last clip back on air as an instant replay.

In short:
- Turn on **Keep the last moments** in **Settings › Clips** and pick a length, from 15 seconds to 5 minutes.
- Click the clip button in the title bar to save those moments as a file. It lands in the Library.
- The rewind button beside it plays the last clip on the live scene, full frame, then removes it.

In the app: Settings › Clips; Record › Save Clip

The replay buffer keeps the last stretch of your show without recording everything. When
something worth keeping happens, save it as a clip.

## Turn on the replay buffer

1. Open **Settings › Clips**.
2. Turn on **Keep the last moments**.
3. Choose a **Length**: **15 s**, **30 s**, **1 min** (the default), **2 min** or **5 min**.

The buffer runs in the background from then on, whether or not you're live or recording. It uses
the same encoder settings as your recordings (**Settings › Recording**).

## Save a clip

Click the clip button (a clapperboard) in the title bar. Its tooltip reads **Save the last seconds
as a clip**; while the buffer is off it's greyed out.

Other ways to save one:

- On a Mac, **Record › Save Clip**.
- The command palette (`⌘K` or `Ctrl+K` on Windows): **Save clip**.
- A global shortcut that works whichever app is in front: set one for **Save clip** in
  **Settings › Shortcuts**.

A message says **Clip saved** with the file's name. The clip is an MP4 file (MOV when recording in
ProRes) named after the time it was saved, in a `Clips` folder inside your recordings folder. It
also appears in the [Library](/desktop/record-and-edit/library) as a **Clip**, ready to play or
open in the Editor.

## Clip every canvas

With more than one canvas, **Settings › Clips** shows **Canvases**. Each canvas that's on keeps
its own buffer at its own size, and the clip button saves them all at once, a file each, with the
canvas's name in the file name. A vertical clip for short-form platforms comes out alongside the
landscape one.

## Play an instant replay

Once you've saved a clip, a rewind button grows in beside the clip button: **Play the last clip
on the live scene**.

Click it, or choose **Replay last clip** in the command palette. The clip plays full frame over
the scene on air, on every canvas, as a layer named **Replay**. When it ends, the layer removes
itself.

:::caution
The replay goes straight on air over whatever is live, with its sound. Check your levels before
using it during a stream.
:::

## From the command line

```sh
lightair call clip.save
```

See [clip.save](/developers/remote-api/clip.save).

## Related

- [Record your show](/desktop/record-and-edit/record)
- [The Library](/desktop/record-and-edit/library)
- [Canvases](/desktop/build-your-show/canvases)
