video-understanding

video-understanding is a skill for Claude Code, Codex from shu-bamma/marlin-cli. It costs 101 tokens per session (1,535 once invoked), scanned A, original, Apache-2.0.

A local video-analysis tool that describes what appears in a clip or finds when a specified event occurs.

In plain words
What is it for?
Use it to caption short clips, find one event and its timestamp, or analyze longer videos by splitting them into overlapping sections.
Why use it?
It helps locate scenes and events without manually watching the entire video, while accounting for its limited viewing window.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to caption short clips, find one event and its timestamp, or analyze longer videos by splitting them into overlapping sections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shu-bamma/marlin-cli/video-understanding
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shu-bamma/marlin-cli --skill video-understanding
Clone the repo
git clone --depth 1 https://github.com/shu-bamma/marlin-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for video-understanding

README.md
[![agentmods](https://agentmods.dev/badge/skills/shu-bamma/marlin-cli/video-understanding/github.svg)](https://agentmods.dev/skills/shu-bamma/marlin-cli/video-understanding)
Your own site
<a href="https://agentmods.dev/skills/shu-bamma/marlin-cli/video-understanding"><img src="https://agentmods.dev/badge/skills/shu-bamma/marlin-cli/video-understanding/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for video-understanding

Your own site · 80×15
<a href="https://agentmods.dev/skills/shu-bamma/marlin-cli/video-understanding"><img src="https://agentmods.dev/badge/skills/shu-bamma/marlin-cli/video-understanding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,535 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.01535
Opus 5.5 $0.00040 $0.00614
Sonnet 5.5 $0.00020 $0.00307
Haiku 4.5 $0.00010 $0.00153

Measured 2mo ago against content hash df702fd8482a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

video-understanding scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/video-understanding/SKILL.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

video-understanding — Marlin-2B as eyes on a video

Two verbs, each on a single clip, each --json:

Job Command
Describe a video marlin caption <video> --json
Describe (one paragraph) marlin caption <video> --detail --json
Find when X happens marlin find <video> "<query>" --json

caption = what's in it (a scene description + a <start>–<end> event timeline). find = when one thing happens (a single start → end span).

Hard limits — read before using

  1. One call sees ~2 minutes. Marlin samples ~2 fps up to ~240 frames, so a single caption/find only "sees" a bounded clip. On longer videos the timestamps drift and detail is lost.
  2. Longer than ~2 min → window it. Cut overlapping windows with ffmpeg, run per window, then offset the returned timestamps by the window's start:
    ffmpeg -i long.mp4 -ss 0   -t 120 -c copy w0.mp4   # 0–120s
    ffmpeg -i long.mp4 -ss 110 -t 120 -c copy w1.mp4   # 110–230s (10s overlap)
    marlin caption w0.mp4 --json ; marlin caption w1.mp4 --json
    
    Every timestamp from w1 must have 110 added back.
  3. find returns ONE span — there is no multi-find. It gives the single best match. To find every occurrence, window the video (as above) and run find per window, then collect the hits. Never assume one find call surfaces all matches.
  4. Visual only. These modes don't read audio/speech. For "what was said," use a transcription tool.
  5. No library search. Searching across a whole folder of videos is not in these verbs (that's the experimental index/search, not shipped — see the repo roadmap).

Resolution & memory (automatic)

Marlin's per-frame budget is ~200K pixels (≈448², 2 fps). The CLI auto-downscales the clip to that budget before inference — mirroring the model's own smart_resize — so a 1080p/4K clip is decoded small: much faster and far less memory, with no accuracy loss (the model would resize to this anyway, just after a costly full-res decode that can OOM a laptop). You don't have to do anything; it's on by default.

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 97 lines · 101 tokens per session scan A df702fd8482a

Subscribe to this mod's changes

video-understanding is a skill published in the GitHub repository shu-bamma/marlin-cli (13 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 101 tokens to every session and 1,535 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

video-understanding compared with skills from other repositories

video-understanding next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
video-understandingshu-bamma/marlin-cliSkill134mo agoApache-2.0A101Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99ktodayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79ktodayMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill314k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code