---
title: "Video search"
description: "Ingest video, extract frames at 1 FPS, CLIP-index them, search visually."
pattern: "serving"
url: "https://pixeltable.com/recipes/video-search"
---

# Video search

Ingest video, extract frames at 1 FPS, CLIP-index them, search visually.

- **Pattern:** serving
- **Cloud deploy:** yes
- **Scaffold:** `pxt schema update app.py videointel && pxt service update app.py videointel`

## Tables

### videos

| Column | Type |
| --- | --- |
| video | Video |
| title | String |

## Routes

- `INSERT /api/ingest` (table: videos)
- `QUERY /api/search/visual`

## Sample calls

### Insert a video

```sh
curl -X POST "$PIXELTABLE_API_URL/api/ingest" -H "Authorization: Bearer $PIXELTABLE_API_KEY" -F video=@clip.mp4 -F title=demo
```

Source: https://github.com/pixeltable/pixeltable-starter-kit/blob/main/examples/video-search
