# Video contact sheet

Make one picture showing a grid of evenly spaced frames from a video, each marked with its time.

- Endpoint: `POST https://setget.net/v1/tools/video-contact-sheet` with JSON `{"input": {...}}` (add `"wait": 30` to hold the reply until the job finishes)
- MCP: `run_tool` with `slug` = `video-contact-sheet`
- Page: https://setget.net/tools/video-contact-sheet

## Files in, files out

This is a file tool. Its file inputs take file references, not file contents and not web addresses.

- Get a reference by uploading: `curl -T FILE https://setget.net/drop/` prints a line `ref  <id>/f1`. Or `POST https://setget.net/v1/drops` with `{"files":[{"name","size"}]}`, PUT the bytes to the returned `upload.url` with the listed headers, and use the file's `ref`. Over MCP use the `drop` tool. A file under about 700 KB can also be sent in place as a `data:<type>;base64,<content>` URI.
- Uploads are at most 100 MB per file, are readable by anyone with the link, and expire (one hour by default). Programs are refused.
- The tool runs as a job. The reply is `{"tool", "ms", "result", "files", "job"}`: `result` is JSON, and every result file comes back in `files` as `{"name", "size", "content_type", "kind", "url", "ref"}`. Download it from `url`, or pass `ref` as the input of another file tool.
- A job still running when the wait ends answers 202 with `job`. Follow it with `GET https://setget.net/v1/jobs/<id>?wait=30`, or stream progress from `GET https://setget.net/v1/jobs/<id>/events` (over MCP: the `job` tool). A person can watch it at `job.url`.

## Inputs

- `video` (required, file, a file reference such as `DROP_ID/f1`, accepts video): The video to summarise.
- `columns` (optional, integer, default `4`, range 1..8): Frames in each row.
- `rows` (optional, integer, default `3`, range 1..8): Number of rows.
- `width` (optional, integer, default `320`, range 64..1280): Width of each small frame in pixels. The height follows.
- `timestamps` (optional, boolean, default `true`): Write the time of each frame in its corner.
- `gap` (optional, integer, default `4`, range 0..40): Space between the frames and around the sheet, in pixels.
- `background` (optional, string, one of `black`, `white`, `gray`, default `"black"`): Colour of the gaps.
- `format` (optional, string, one of `jpg`, `png`, default `"jpg"`): Picture format of the sheet.

## Example 1: Six frames on one sheet

Upload first. Each placeholder below stands for the reference of one upload: `DROP_ID/f1` = [sample.mp4](https://setget.net/static/samples/sample.mp4).

```json
{"input":{"video":"DROP_ID/f1","columns":3,"rows":2,"width":160},"wait":30}
```

## Example 2: A strip of four frames without times

Upload first. Each placeholder below stands for the reference of one upload: `DROP_ID/f1` = [sample.mp4](https://setget.net/static/samples/sample.mp4).

```json
{"input":{"video":"DROP_ID/f1","columns":4,"rows":1,"timestamps":false,"format":"png"},"wait":30}
```

**What is a contact sheet for?** It shows what happens in a video at a glance. It is also a cheap way to give a vision model an overview: one picture instead of many.

**Where in the video are the frames taken?** The video is divided into as many equal parts as there are frames, and each frame comes from the middle of its part. The times are listed in the result.
