Skip to main content

tapetum: give your agent eyes

CI MIT license PyPI 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

With uv, there's nothing to install. Just run it:

uvx tapetum "https://youtu.be/jNQXAC9IVRw"

To keep it around, uv tool install tapetum or pipx install tapetum, then call tapetum directly.

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 Add {"command": "uvx", "args": ["--from", "tapetum[mcp]", "tapetum", "mcp"]} to your client's MCP config. 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.1

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.1
File Size Uploaded Provenance Actions
tapetum-0.2.1.tar.gz 29.6 kB With provenance Details for tapetum-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 62.8 kB

Release files / tapetum-0.2.1.tar.gz

Download URL tapetum-0.2.1.tar.gz
Size 29.6 kB
Tags Source
SHA-256 checksum
How to use checksums
59f2eea84d691658e5a854e1103768565e3c844fc479d475807b69808cfeb2fe
BLAKE2b-256 checksum
How to use checksums
2f0ad3d4d42bf0a772315f4ad6cd7ab99aafa5606118e16e1bc5ddde493c74c6
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.1-py3-none-any.whl

Download URL tapetum-0.2.1-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c72fd3408e33615a8d788b735f401614847c2e0a2439d27954d1e50ef6532d6
BLAKE2b-256 checksum
How to use checksums
ce2cff365cdda7276d7bcc3e416ea0b096a061f1e2d2655f2c46c2ef3bd20ddc
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.1

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