r/LLMDevs • • 3d ago

Discussion i built a free 36M-param tool that lets LLMs “watch” videos locally (MCP server, runs on laptop cpu, apache-2.0)

hey, i built this as a learning project (v0.1 post here) and v1.0 is out now. its free, apache-2.0, no paid version or anything.

the problem: a lot of LLM assistants can look at images but cant open a video file. so tiny-vision runs locally next to your LLM, splits the video into scenes, captions them, and gives the LLM a text breakdown with timestamps. then the LLM does the actual reasoning (“what happens in this video”, “find the part where people are on the beach”). nothing gets uploaded.

how the LLM gets it:

  • MCP server (stdio) with summarize_video, describe_video, caption_image. tested in claude desktop + claude code, should work in cursor, vs code, lm studio etc (havent tested those). with lm studio + a local model its fully offline
  • no MCP? caption.py clip.mp4 --summary prints plain text, so you can pipe it into anything, like | ollama run qwen2.5 "Summarize this video:"

what the LLM actually sees looks like this:

video: trip.mp4 · 00:09 long · 3 scenes (3 shots) · avg scene 3s
recurring: dogs (2 scenes)

scene 1 [00:00–00:03] (3s)
  seen: a group of dogs running in a field. | three dogs running in a field with a bench in the background.
  keywords: dogs, running, field, bench

i tested it on a 10-15 min youtube video and it still works fine.

how it works:

  • frames are picked on scene changes (hard cuts + slow camera drift), not one every N seconds, so the timestamps land on the real cuts and a static shot costs one caption. only ~5 frames/sec get decoded, so high-fps phone video stays cheap
  • each shot gets captioned at the start, middle and end, then similar shots are grouped into scenes
  • captioner: Meta’s DINOv2-small as a frozen image encoder (not fine-tuned), plus my own adapter + caption decoder (14M params) trained from scratch on COCO. 36M params total

numbers (same 1000 COCO test images, same scorer, Apple M5; cpu = one image at a time, greedy decoding):

  • ~89% of florence-2-base’s caption score (CIDEr 1.196 vs 1.348)
  • 6x smaller (36M vs 231M)
  • 8x faster on gpu, 75x faster on cpu (54ms per image vs 4 sec)
  • on the full 5k COCO Karpathy test: CIDEr 1.163 with beam 3

not saying its better than florence, its not. it just does a lot with very little. benchmark scripts and full details are in the repo and the model card.

limitations:

  • no audio yet, so it describes what it sees, not what is said. speech is next (probably whisper)
  • it doesnt understand motion: it captions frames, it doesnt compare them
  • captions are COCO style, so no OCR, no names, no counting
  • i took a lot of help from claude to build this, so its not entirely mine

code: https://github.com/amar683/tiny-vision
model: https://huggingface.co/amartomar683/tiny-vision

if anyone tries it with other MCP clients, let me know if it breaks

5 Upvotes

0 comments sorted by