Sign In

video-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

video-cli

Local-first video REPL for AI agents — search, ask, navigate, extract

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
17
112.5%
Maintainers
1
Weekly downloads
 
Created
Source

video-cli

video-cli

Make a video feel like a codebase — searchable, inspectable, citeable.

One API key. Two cents per hour of video. Every answer grounded in timestamps.

Tests MIT License Node >= 22 Zero Dependencies

Quick Start

node video-cli.js init                              # set up API key (secure, interactive)
node video-cli.js setup video.mp4                   # ingest + transcribe + analyze + embed
node video-cli.js ask <id> "what is the main argument?"

That's it. setup ingests, transcribes, OCRs, and embeds. ask returns a grounded answer with timestamps and citations. Most sessions are 1-3 commands.

What It Does

You have a video.  →  setup  →  Now it's searchable.
                                 ask    "what happened at the end?"
                                 search "pricing discussion"
                                 context --at 3:45
                                 chapters
                                 frame --at 2:30
                                 clip --at 2:30 --pre 5 --post 10

Every command returns JSON. An AI agent can setup a meeting recording then ask questions about it — with cited timestamps, frame paths, and suggested follow-ups.

Commands

TierCommandsWhat they do
Intentsetup, askOne-shot: ingest a video or answer a question
Navigatesearch, context, chapters, next, grepDrill into specific moments
Extractframe, clipPull out frames or video clips
Pipelineingest, transcribe, analyze, embedRun pipeline steps individually
Inspectlist, status, inspect, brief, configCheck what's available

How It Works

video.mp4
  → ffmpeg scene detection (free, local)
  → Gemini transcription ($0.0002/min)
  → Gemini OCR + frame descriptions ($0.003)
  → Gemini embeddings ($0.0002)
  → searchable JSON artifacts on disk

query
  → semantic + lexical + description search (local, instant)
  → Gemini synthesizes answer ($0.0001)
  → { answer, citations[], suggestedFollowUps[], framePaths[] }

Cost

Video lengthSetup costPer query
5 min$0.002$0.0001
1 hour$0.018$0.0001
10 hours$0.18$0.0001

One API key (GEMINI_API_KEY) powers everything. Optionally swap in ElevenLabs or Deepgram for transcription via --provider.

Requirements

  • Node >= 22
  • ffmpeg and ffprobe
  • GEMINI_API_KEY in .env

For AI Agents

See SKILL.md — the complete agent-facing reference with output shapes, flags, and session examples.

Development

npm test              # 16 tests, no API calls
npm run eval          # retrieval quality eval

Zero npm dependencies. Pure Node.js + ffmpeg.

License

MIT

Keywords

video

FAQs

Package last updated on 22 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts