Clip-I-Nator
Deterministic local video editing CLI (faster-whisper + FFmpeg + kinetic subtitles) built to be operated by quota-based AI coding agents with zero LLM APIs.
Deterministic local video editing CLI (faster-whisper + FFmpeg + kinetic subtitles) built to be operated by quota-based AI coding agents with zero LLM APIs.

"Behold—my latest masterpiece, the Clip-I-Nator! While everyone else pays outrageous cloud-editing API fees, this magnificent local contraption forces your own AI coding agent to transcribe, slice, crop, and caption your videos right on your machine... and soon, your entire content backlog shall bow before me! (Self-destruct button intentionally omitted.)"
Clip-I-Nator is a deterministic, 100% local Python CLI for video preparation, word-level transcription, frame snapshots, animated active-word subtitles, vertical reframing, and silence removal — built specifically to be operated by your AI coding agent (such as Antigravity, Claude Code, OpenAI Codex CLI, Cursor, or Gemini CLI) using your existing subscription or usage quota.
Most AI video tools either lock you into expensive cloud clipping subscriptions or require you to configure separate LLM API keys and pay per token/minute on top of what you already pay for your coding assistant.
Clip-I-Nator flips the model:
plan.json, and run the deterministic renderer.clip-i-nator prepare condenses long recordings into a super-compact transcript_compact.txt annotated with timestamps, silence gaps (PAUSE_BEFORE), and energy spikes (LOUD!), keeping agent context usage tiny and fast.faster-whisper transcription, FFmpeg seeking, 9:16 cropping/blurring, word-boundary snapping, crossfades, and ASS subtitle burn-in) run locally and deterministically.flowchart LR
A["Raw Video (.mp4/.mkv/...)"] -->|"1. clip-i-nator prepare"| B["transcript_compact.txt + transcript_full.json"]
A -->|"2. clip-i-nator snapshot (optional)"| C["Frame JPGs for visual framing check"]
B --> D["AI Coding Agent (Antigravity / Claude Code / Codex / Cursor)"]
C --> D
D -->|"3. Writes declarative plan.json"| E["plan.json"]
E -->|"4. clip-i-nator render"| F["Final 16:9 / 9:16 Clips + Burned-in Subtitles"]
1. Prepare (prepare): Runs local ffprobe, silencedetect, audio peak detection, and faster-whisper (word-level timestamps) and writes a cached <videoname>_work/ directory.
2. Inspect (snapshot, optional): Extracts .jpg frames at chosen timestamps so multimodal coding agents can inspect framing and pick the right horizontal crop_x anchor for 9:16-crop.
3. Plan & Render (render): Your AI agent reads transcript_compact.txt, selects highlight segments or multi-clip montages, saves a plan.json, and runs clip-i-nator render. Cuts automatically snap to word boundaries so words are never clipped mid-syllable.
4. Silence Jump-Cut (clean): Automatically strips long pauses from full recordings with smooth audio/video crossfades.
faster-whisper (defaults to large-v3-turbo, downloaded automatically on first run into your local HuggingFace cache — no model weights are bundled in this repo)..venv nvidia/*/bin libraries on startup (float16 on NVIDIA GPUs) and falls back cleanly to cpu (int8) if CUDA is unavailable.transcript_compact.txt): Single-line segments tagged with (PAUSE_BEFORE: Xs) and (LOUD!) so your agent spots comedic timing, reactions, and topic transitions immediately. - 16:9 — Full HD 1920x1080 letterboxed/fitted landscape.
- 9:16-blur — Vertical 1080x1920 with a blurred full-height background and centered foreground.
- 9:16-crop — Vertical 1080x1920 cropped horizontally with configurable crop_x (0.0 left to 1.0 right).
.ass subtitles with smooth fade/pop-in phrase entrances and animated active-word color + scale highlights burned straight into the clip ("subs": true).xfade / acrossfade transitions.prepare loads instantly from <videoname>_work/ unless --force is passed.>=3.12,<3.14)PATH (on Windows, Clip-I-Nator also automatically detects WinGet Gyan.FFmpeg installs!)float16 transcription (CUDA 12 / cuDNN 9 Python packages are installed automatically on Windows/Linux; CPU int8 fallback requires zero GPU setup)uv (Recommended)git clone https://github.com/jaluraDEV/Clip-I-Nator.git
cd Clip-I-Nator
uv venv --python 3.12
uv pip install -e .
pipgit clone https://github.com/jaluraDEV/Clip-I-Nator.git
cd Clip-I-Nator
python -m venv .venv
# Windows PowerShell:
.venv\Scripts\Activate.ps1
# Linux / macOS:
# source .venv/bin/activate
pip install -e .
Verify the CLI works:
# Windows:
.venv\Scripts\clip-i-nator.exe --help
# Linux / macOS (or with activated venv):
clip-i-nator --help
Note on Whisper Model Weights: By default,prepareusesfaster-whispermodellarge-v3-turbo. On first run,faster-whisperdownloads the model once into your local HuggingFace cache (~/.cache/huggingface). You can pass any smaller or custom Whisper model with--model(e.g.,--model medium,--model small,--model base).
This repository ships with agent instructions ready out of the box:
AGENTS.md — Automatically picked up by OpenAI Codex CLI, Antigravity, and compatible workspace agents.SKILL.md — Portable Agent Skill card for Antigravity, Claude Code, Cursor, and similar skill-aware agents.Just drop a recording into a local folder (gitignored by default via .mp4 / _work/) and tell your agent:
clip-i-nator prepare on my_stream.mp4, read my_stream_work/transcript_compact.txt, and find the 5 funniest or most intense highlights. Take snapshots to check framing, write a plan.json for 9:16-blur Shorts with subtitles enabled, and render them."podcast.mp4 stitching the best 3 moments around AI agents. Use 9:16-crop, verify with snapshot whether the speaker is centered or off-center (crop_x), and render with captions."clip-i-nator clean on tutorial_raw.mp4 to remove pauses longer than 0.6s with subtle 0.05s crossfades."prepare — Transcribe & Analyze Audioclip-i-nator prepare path/to/video.mp4
Options:
--out, -o — Custom working directory (default: <videoname>_work/)--model, -m — faster-whisper model name (default: large-v3-turbo)--language, -l — ISO language code such as en, de, ja (omit or pass auto for automatic detection)--force, -f — Ignore cached files and re-run analysisOutputs in <videoname>_work/:
transcript_compact.txt — Human & LLM-readable timeline: # VIDEO: stream.mp4 | DURATION: 22:45.10 (1365.10s) | 1920x1080 @ 60.0fps | LANG: en | MODEL: large-v3-turbo (cuda/float16)
# SEGMENTS: 359 | SILENCES: 219 | LOUD PEAKS: 14
#001 [00:02.40 - 00:06.15] (PAUSE_BEFORE: 1.8s) Okay, let's see what happens when I press this button...
#002 [00:06.20 - 00:09.85] (LOUD!) WAIT NO—IT ACTUALLY WORKED?!
transcript_full.json — Word-level timestamps, silence intervals, audio peaks, and video metadata.snapshot — Extract Frame Previewsclip-i-nator snapshot path/to/video.mp4 --times "12.5,45.0,120.0"
Saves .jpg frames to <videoname>_work/snapshots/ so your agent can visually inspect framing or on-screen action.
render — Render Clips from plan.jsonclip-i-nator render path/to/video.mp4 --plan plan.json
Options:
--out, -o — Output directory (default: <videoname>_work/clips/)--work-dir, -w — Working directory containing transcript_full.json (required when "subs": true)plan.json Schema (UTF-8)See examples/plan.example.json:
{
"clips": [
{
"id": "clip_01_highlight",
"title": "Opening Hook & Big Reaction",
"start_sec": 120.5,
"end_sec": 156.0,
"format": "9:16-blur",
"subs": true
},
{
"id": "clip_02_montage",
"title": "Multi-Segment Montage",
"segments": [
{ "start_sec": 10.0, "end_sec": 18.5 },
{ "start_sec": 42.0, "end_sec": 55.0 }
],
"format": "9:16-crop",
"crop_x": 0.5,
"subs": true,
"highlight_color": "&H0000FFFF",
"crossfade_sec": 0.15
}
]
}
| Field | Required | Default | Description |
|---|---|---|---|
id | Yes | — | Output filename stem (<id>.mp4 and <id>.ass) |
title | No | "" | Descriptive clip title for editorial clarity |
start_sec / end_sec | Single clip | — | Start and end time in seconds (when segments is omitted) |
segments | Montage | null | Array of { "start_sec": float, "end_sec": float } stitched together |
format | No | "16:9" | "16:9", "9:16-blur", or "9:16-crop" |
crop_x | No | 0.5 | Horizontal crop anchor (0.0 = left, 0.5 = center, 1.0 = right) for 9:16-crop |
subs | No | false | Burn in animated active-word ASS subtitles from transcript_full.json |
highlight_color | No | "&H0000FFFF" | Active word ASS BGR color (default #FFFF00 yellow) |
crossfade_sec | No | 0.15 | Transition overlap in seconds between segments (0.0–2.0) |
clean — Silence Jump-Cut Cleanerclip-i-nator clean path/to/video.mp4 --min-silence 0.6 --crossfade 0.05
Options:
--out, -o — Output path (default: <videoname>_clean.mp4)--work-dir, -w — Reuse cached silence intervals from transcript_full.json if present--silence-thresh — Silence threshold in dB (default: -35.0)--min-silence — Minimum pause duration in seconds to cut (default: 0.6)--pad — Speech padding before/after cuts in seconds (default: 0.12)--crossfade — Crossfade duration between cuts in seconds (default: 0.05)Clip-I-Nator/
├── assets/
│ └── logo.png # Clip-I-Nator project emblem
├── clipinator/
│ ├── __init__.py
│ ├── cli.py # Typer CLI commands (prepare, snapshot, render, clean)
│ ├── env.py # CUDA DLL registration & FFmpeg/FFprobe discovery
│ ├── models.py # Pydantic schemas (TranscriptFull, RenderPlan, ClipSpec)
│ ├── render.py # FFmpeg rendering, snapshots, word snapping, and clean
│ ├── subtitles.py # Kinetic active-word .ass subtitle generator
│ └── transcribe.py # ffprobe, silencedetect, audio peaks, faster-whisper
├── examples/
│ └── plan.example.json # Example render plan
├── tests/
│ └── test_clipinator.py # Unit and FFmpeg smoke tests
├── AGENTS.md # Instructions for AI coding agents
├── SKILL.md # Portable Agent Skill definition
├── LICENSE # MIT License
└── pyproject.toml # Package metadata & dependencies
python -m unittest discover -s tests -v
Released under the MIT License. Copyright (c) 2026 jaluraDEV.