Skip to main content

Find moments in your videos. Agent-first CLI for Marlin-2B: dense captioning + temporal grounding, local or hosted.

Project description

marlin

Understand any video from the terminal. marlin is the agent-first CLI for Marlin-2B — a 2B video VLM that describes a clip (dense captioning) and locates moments in it (temporal grounding). Runs free and local on Apple Silicon (MLX) or NVIDIA (vLLM) — no API key, no network for inference.

uv tool install nemostation              # or: pipx install nemostation
marlin                                   # first run: detect Apple Silicon/NVIDIA + build the engine
marlin caption clip.mp4                  # describe what's in a video
marlin find clip.mp4 "a deer crossing"   # locate when it happens → start → end

Add --json to any verb for clean, parseable output (auto when piped).

Two modes, one clip

Verb What it does
marlin caption <video> scene description + a <start>–<end> event timeline
marlin caption <video> --detail one free-form paragraph
marlin find <video> "<query>" the single start → end span where the query happens

Both run one model call on one bounded clip (~2 min at 2 fps) — the same thing the inference server does, matching Marlin's training distribution. For longer videos, cut overlapping windows with ffmpeg and run per window; find returns one span (no multi-find), so window + loop for every occurrence.

Agents

marlin skills install        # → .claude/skills/ + .agents/skills/

Installs the video-understanding skill so Claude Code / Codex use marlin as "eyes on a video" — with the limits (clip length, single-find) baked in. Every verb honors --json (stdout parseable, progress on stderr). See skills/video-understanding/SKILL.md.

How it runs (auto-detected, local)

Apple Silicon NVIDIA
engine SGLang-MLX vLLM
serve auto-starts on first caption/find (or marlin serve) same
weights gated — 1-click access form gated — 1-click form

No API key — inference is local. A hosted base_url swap lives in deploy/ for a future skill; it's not surfaced in the CLI yet.

Roadmap

Shipping now: local caption + find on single clips, Apple Silicon and NVIDIA. Next, once the storage + ranking design lands (present in the CLI today as hidden/experimental verbs, not finalized):

  • index / search — caption + embed a whole folder into a local index, then semantic search across your library (two-stage retrieval). Database and ranking are still being decided.
  • Speech — fold faster-whisper transcripts into the index, to search by what was said as well as what happened.
  • More skills — social-media analysis, footage catalog, clip scoring — each a SKILL.md riding the same verbs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nemostation-0.1.5.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nemostation-0.1.5-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file nemostation-0.1.5.tar.gz.

File metadata

  • Download URL: nemostation-0.1.5.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for nemostation-0.1.5.tar.gz
Algorithm Hash digest
SHA256 dae9235942b1b1e340551e50375fb67efe2d15ef0b699542f8536e551c6ddab2
MD5 66ede0e4b46b6d7b1142f7c3907e587b
BLAKE2b-256 6e60c12f0cb4c70a8dfb8fc05619c6df54d22b7faf652418589fd4eba0c885d0

See more details on using hashes here.

File details

Details for the file nemostation-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nemostation-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0cc79577e3ce8279198bf52beb3e9dd73553e320e6c4cf9fdff23685122f6dbf
MD5 b7c16f16c7349492c7801ae66d07155f
BLAKE2b-256 abbdac6c9ca15936db55e902bc2bfb82a91ec4d44df7f2b73e5b1c73f923c31f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page