clipdex
Search your footage like you search your email. clipdex indexes a video library with a local vision model, then lets you find shots in plain language: "horse at sunset", "close-up hands", "all the wides from day 2".
Built by a working director/DP for real post-production: it runs entirely on your machines, so unreleased footage never leaves the building.
pipx install clipdex
clipdex index ./footage
clipdex search "horse galloping"
day1_001.mov @0:30
Group of wild horses galloping across green hillside
Tags: horses, galloping, nature
Shot: wide Mood: energetic
-> ffplay -ss 30.0 "footage/day1_001.mov"
Why
Editors and assistant editors lose hours scrubbing timelines to find "that shot". Commercial tools that solve this upload your media to a cloud, which is a non-starter for client work under NDA, documentary sources, or anything pre-release.
clipdex extracts keyframes, describes each one with an Ollama vision model (description, tags, shot type, mood), and stores it in a local SQLite index. No API keys, no uploads, no subscription.
Who it's for
- Editors and AEs logging dailies or digging through a documentary archive
- Directors and DPs pulling selects and references from past shoots
- Small post houses that want AI search without sending media to a third party
Requirements
- Python 3.10+
- ffmpeg (ffmpeg and ffprobe on your PATH)
- Ollama with a vision model, for example
ollama pull llama3.2-vision
Zero Python dependencies. Standard library only.
Install
# Recommended
pipx install clipdex
# Or with pip
pip install clipdex
# Or run straight from a checkout, no install
git clone https://github.com/Obrais-cloud/clipdex.git
ln -s "$(pwd)/clipdex/clipdex" /usr/local/bin/clipdex
Usage
Index footage
clipdex index ./footage # directory, recursive
clipdex index ./footage/day1_001.mov # single file
clipdex index ./footage --model gemma3:4b # different vision model
clipdex index ./footage --interval 15 # keyframe every 15s (default 30)
clipdex index ./footage --force # reindex unchanged files too
Index across several machines
Point clipdex at more than one Ollama host and it spreads frame analysis across them, skipping any node that fails a health check. Useful when a single workstation would take all night.
clipdex index ./footage --hosts "http://mac-studio:11434,http://edit-bay-2:11434,http://render-node:11434"
Search
clipdex search "horse running"
clipdex search "close-up" --limit 5
clipdex search "aerial shot" --json # for scripts
clipdex search "horse" --no-ai # keyword match only, skip AI re-ranking
Keyword matching runs first across descriptions, tags, moods and shot types. If it finds nothing, clipdex asks the model to rank frames semantically.
Export to your NLE
clipdex export --format edl --output selects.edl # import into Premiere, Resolve, Avid
clipdex export --format csv --output shots.csv
clipdex export --format json
Other commands
clipdex list # every indexed file
clipdex list --tags "horse"
clipdex list --path "day1"
clipdex info day1_001.mov # details for one file
clipdex stats # library totals
clipdex reindex day1_001.mov
clipdex config --model gemma3:4b
clipdex config --db ~/projects/my-doc/index.db # one index per project
How it works
- Discover video files by extension (.mp4, .mov, .mxf, .r3d, .braw and more)
- Extract keyframes at a fixed interval with ffmpeg
- Describe each frame with an Ollama vision model as structured JSON
- Store everything in SQLite (WAL mode)
- Search with keyword matching, falling back to AI ranking
Files are tracked by a fast partial hash (blake2b over head, middle and tail), so re-running clipdex index only processes new or changed media.
Config
Defaults live in ~/.clipdex/config.json.
| Setting | Default | Description |
|---|---|---|
db |
~/.clipdex/index.db |
SQLite database path |
model |
llama3.2-vision |
Ollama vision model |
hosts |
http://localhost:11434 |
Comma-separated Ollama endpoints |
interval |
30 |
Seconds between keyframes |
Supported formats
MP4, MOV, AVI, MKV, WebM, M4V, MXF, MPEG, WMV, FLV, TS, MTS, M2TS, 3GP, OGV, R3D, BRAW, ARI, DNG. Camera-raw formats depend on your ffmpeg build.
Part of an open toolkit for film production
clipdex is one of a set of local-first, open-source tools for production and post, all running on Ollama with no API keys:
| Tool | What it does |
|---|---|
| clipdex | Natural-language search across a footage library |
| cliplog | Automatic shot log: detects cuts and describes every shot |
| dailies | Dailies reports from a folder of footage: scenes, palettes, captions |
| clipvault | Semantic clip library with embeddings |
| chromacut | Color analysis: extracts the color narrative of a film |
| scriptbreak | Script breakdown from Fountain: cast, props, wardrobe, VFX per scene |
| shotgen | Shot list to animatic: storyboards and motion previews |
Contributing
Issues and pull requests are welcome, especially from editors and AEs with real workflows to support. Run the tests with:
pip install pytest
pytest
License
MIT
Metadata
Release files for clipdex 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clipdex-0.2.0.tar.gz | 14.6 kB | With provenance | Details for clipdex-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clipdex-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for clipdex-0.2.0-py3-none-any.whl |
Total release size: 29.1 kB
Release files / clipdex-0.2.0.tar.gz
| Download URL | clipdex-0.2.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9ad4fe0cec1837dfa0e75c363b9894be4bd52175a6d2557f8ba211a106c530c
|
|
BLAKE2b-256 checksum How to use checksums |
88cd6a5399e8970ab7def173a808ece6bec77eafc3fdc83d70ba8a21920a4fb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / clipdex-0.2.0-py3-none-any.whl
| Download URL | clipdex-0.2.0-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72385ad05c709e3d20b88f746f087cc85d3ed1c10ac11ee3a50fc422f99e71a5
|
|
BLAKE2b-256 checksum How to use checksums |
181f7674b12c57efd714192bd5de5a11be62c001f4049f5372b26da420ccace4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logSecurity for clipdex 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for clipdex-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.