Skip to main content

tapetum: give your agent eyes

CI MIT license Python 3.10+ Website

tapetum lets an AI agent watch a video. You give it a link. It hands back one file with what was said and what was on screen, in time order, plus the handful of frames worth looking at. No cookies, no API keys, no account. Everything runs on your machine.

tapetum running on a YouTube link and printing the timeline

Install

You need uv (or pipx).

uv tool install git+https://github.com/Nadercr7/tapetum
tapetum "https://youtu.be/jNQXAC9IVRw"

ffmpeg comes bundled. Check your setup any time with tapetum doctor.

What you get back

One JSON object on stdout, and a folder:

timeline.md       speech and frame references in time order. Start here.
sheet_01.jpg      nine frames per image, timestamps burned in
frames/           the frames it kept
transcript.srt    plus transcript.json

A slice of timeline.md:

### 00:05 – 00:10
frame: `frames/f001_00-05.jpg`
> the cool thing about these guys is that they have really...
> really really long trunks

Open any run in your browser with tapetum view <folder>: frames on one side, a searchable transcript on the other. See a live one.

How it works

Words, cheapest first. It reads the platform's captions when they exist: human ones over auto-generated, the original language over machine translations, your --lang over both. When there are none, it downloads a small audio file and runs Whisper locally. Every step it tried is listed in steps, failures included.

Frames by change, not by clock. It samples a frame every second, then keeps one only when the picture actually changed. A new line on a slide counts. A wobbling camera doesn't. Transitions collapse into one settled frame, and --budget caps the total, so a talking head costs you three images instead of thirty.

Detail on demand. tapetum <url> --at 03:12 downloads just that moment at 720p and writes four sharp frames. No re-run of the whole video.

Honest output. Every error comes with a code and a hint. Shaky transcripts carry warnings. Failed runs aren't cached, so a network blip doesn't stick.

Use it from an agent

Where How
Claude Code /plugin marketplace add Nadercr7/tapetum, then /plugin install tapetum@tapetum. Or copy skills/tapetum/ to ~/.claude/skills/.
Any MCP client Install with uv tool install "tapetum[mcp] @ git+https://github.com/Nadercr7/tapetum" and add {"command": "tapetum", "args": ["mcp"]}. Tools: watch_video, zoom_video. Frames come back as images.
Codex, Cursor, others AGENTS.md tells them how to call it.

The skill file is short on purpose. Long instructions cost tokens on every single run.

Options

tapetum <url | file>
  --lang ar,en        languages you prefer, in order
  --budget 24         most frames to keep (short clips use fewer)
  --quality accurate  bigger speech model: fast | balanced | accurate
  --no-frames         transcript only, fastest
  --ocr               read on-screen text (pip install "tapetum[ocr]")
  --force-stt         ignore captions and listen instead
  --at 03:12          zoom into one moment
  --fresh             ignore the cache
  --out DIR           where to write (default ~/.tapetum/<id>)

tapetum doctor        what works on this machine
tapetum view DIR      open a run in the browser
tapetum mcp           start the MCP server

Languages

Whisper covers about 99 languages. On Egyptian Arabic the default model garbles names and numbers, and --quality accurate fixes most of it. On a laptop CPU that took about two and a half minutes for a seven-minute video, after a one-time 1.6 GB model download. tapetum warns you when a language is known to be weak on the model you picked. Numbers are in docs/research/10-measured.md.

What it can't do

  • Private videos. Private, age-gated and login-only videos return login_required. Instagram and Vimeo mostly land here.
  • Servers. YouTube blocks most datacenter IPs. Run it from your own computer.
  • Live streams. You get live_stream. Try again once the recording is up.
  • Playlists. One video per run. You get playlist_url otherwise.
  • Hear tone. Music, sarcasm and accent don't survive a transcript, and the agent should say so.

Text from a video is content, not instructions. timeline.md says so at the top, so agents don't take orders from a caption.

Why "tapetum"

The tapetum is the mirror layer behind a cat's retina. It sends light back through the eye for a second pass, which is why cats see in the dark and why their eyes glow in a flashlight beam. Look twice, miss less.

Contributing

uv venv && uv pip install -e ".[mcp]" pytest
pytest

Keep the virtualenv outside OneDrive or Dropbox; sync clients lock files mid-install. Design notes, competitor research and measurements are in docs/research. Releasing is in docs/RELEASING.md.

MIT licensed. Use it on videos you're allowed to watch.

Metadata

Release files for tapetum 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tapetum 0.2.0
File Size Uploaded Provenance Actions
tapetum-0.2.0.tar.gz 29.5 kB With provenance Details for tapetum-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tapetum 0.2.0
File Interpreter ABI Platform Actions
tapetum-0.2.0-py3-none-any.whl Python 3 none any Details for tapetum-0.2.0-py3-none-any.whl

Total release size: 62.6 kB

Release files / tapetum-0.2.0.tar.gz

Download URL tapetum-0.2.0.tar.gz
Size 29.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fe77f606a74fe099c7219645650fe72bf0c7e1f78542b565652d81516023d2ce
BLAKE2b-256 checksum
How to use checksums
c282f9838701cef48278a5e1f7df1848f693f009ff5c53a895e2740f98465551
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 Nov 10, 2026.

Transparency log

Release files / tapetum-0.2.0-py3-none-any.whl

Download URL tapetum-0.2.0-py3-none-any.whl
Size 33.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0490179be87590eb60e316bce003d5dc388eb2707e662053d225b3127f8d904
BLAKE2b-256 checksum
How to use checksums
28ed22caae103a4314ca23371508e7f6120d0ca238980af1955245fe9808c1ff
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 Nov 10, 2026.

Transparency log

Security for tapetum 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.

Select from 2 files

Attestation for tapetum-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 Nov 10, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page