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.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.svg" alt="Measured on agentmods" 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 $0.00051 $0.00767
Sonnet 5 $0.00020 $0.00307
Haiku 4.5 $0.00010 $0.00153

Measured 8d ago against content hash df702fd8482a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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. 8d 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 (12 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 101 tokens to every session and 1,535 once invoked, about $0.0005 per session on Opus 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

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens