YouTube URL in, viral vertical clips out. A local, self-hosted pipeline that downloads a YouTube video, transcribes it, picks the best moments, and renders burned-caption 9:16 clips β then lets you refine each one with plain English, push it into DaVinci Resolve, or upload it straight to YouTube.
Built as a local alternative to opus.pro / submagic / klap.app style tools β same core loop (download β transcribe β auto-clip β caption β export), but running on your own machine against your own Claude subscription.
(screenshot/demo GIF placeholder β see data/jobs/demo-igl-ep8/ for a sample
job you can load without downloading anything)
Point it at a YouTube URL and it runs one pipeline per job:
download β extract audio β transcribe β pick highlights β render clips
all driven from a single-page web UI with live status polling. Each rendered clip can then be edited with a natural-language instruction ("make the hook shorter", "switch to the Hormozi caption style"), re-rendered, pushed to DaVinci Resolve, or uploaded to YouTube β without leaving the UI.
- Framing β blur-pad, centre-crop, and active-speaker face-track reframe (ONNX, Ultraface RFB-320) that follows whoever is talking.
- Virality ranking β the highlight picker scores every candidate clip 0β100 with a hook / payoff / retention-risk breakdown, best first.
- Captions β 4 burned styles (word-pop, karaoke sweep, Hormozi box, big-word), power-word emphasis, auto-emoji, and translation to any language.
- Silence jump-cuts β dead-air removal with caption and reframe timing remapped to match.
- Hook punch-in zoom, hook title cards, B-roll cutaways, ducked music bed, audio enhance.
- Multi-aspect export β 9:16 / 4:5 / 1:1 / 16:9 in one batch.
- Colour grading β a built-in LUT pack (
assets/luts/) plus any.cubeyou drop in. - Natural-language clip editing β re-spec a rendered clip in plain English via the shared Claude backend.
- One-click "Make viral" autopilot presets (viral / Hormozi / clean).
- SEO metadata generator β YouTube Shorts title/description/tags tuned to a goal (funnel / growth / monetisation).
- DaVinci Resolve push β send clips straight into a Resolve timeline (WSL2 β Windows bridge).
- YouTube upload β resumable upload via the YouTube Data API v3.
- Parallel rendering with live progress, SRT/ASS caption export, thumbnail generator, and a demo job that works fully offline.
| Layer | Tech |
|---|---|
| Backend | Python, FastAPI, Uvicorn |
| Video/audio | ffmpeg, yt-dlp |
| Transcription | faster-whisper |
| Face tracking | ONNX Runtime (Ultraface RFB-320) |
| LLM (highlights, NL edit, SEO, assists) | Claude (via Claude Code CLI subscription, or the anthropic SDK) |
| Frontend | Single-file vanilla JS/HTML/CSS (static/index.html) |
| Integrations | DaVinci Resolve (scripting bridge), YouTube Data API v3 |
- Python 3.10+
ffmpeg/ffprobeonPATH- Either:
- the
claudeCLI onPATHand an active Claude subscription (default, no API key needed), or - an Anthropic API key, if you set
CLIPFORGE_LLM=api
- the
- Optional: DaVinci Resolve (Windows) for the Resolve push feature; a Google
Cloud OAuth client for YouTube upload (see
youtube/SETUP.md)
git clone https://github.com/divshettyy/clipforge.git
cd clipforge
python3 -m venv venv
venv/bin/python -m pip install -r requirements.txt(If you already have a pre-built virtualenv elsewhere, just point the run
command below at its python instead.)
Copy the example env file and fill in what you need β most people only need to decide the LLM backend:
cp .env.example .env| Variable | Purpose | Default |
|---|---|---|
CLIPFORGE_LLM |
LLM backend: cli (local Claude Code CLI, no API key) or api (Anthropic SDK, pay-per-token) |
cli |
ANTHROPIC_API_KEY |
Anthropic API key β only read when CLIPFORGE_LLM=api |
(empty) |
CLIPFORGE_MODEL |
Claude model id used by both backends | claude-opus-4-8 |
CLIPFORGE_WIN_HOST |
Windows host IP, as seen from WSL2, for the Resolve bridge | 172.20.16.1 |
CLIPFORGE_RESOLVE_PORT |
Port the Resolve bridge listens on (Windows side) | 8765 |
CLIPFORGE_WIN_SHARE |
WSL path to the Windows-visible drop folder used to hand clips to Resolve | /mnt/c/Users/Public/ClipForge |
config.py auto-loads .env from the project root on import. Values already
set in your shell environment take precedence over the file. Never commit
.env β it's git-ignored, along with youtube/client_secret*.json and any
*token*.json.
cd clipforge
venv/bin/python -m uvicorn server:app --host 127.0.0.1 --port 8800Open http://127.0.0.1:8800/. A pre-rendered demo job
(data/jobs/demo-igl-ep8/) is already there β load it to try the UI, media
endpoints, and clip cards with zero downloads or API calls.
- Paste a YouTube URL into the UI and submit β a job is created and the
pipeline runs in the background (
queued β downloading β transcribing β picking β rendering β ready). - Watch clip candidates appear as they render, each with a virality score and hook/payoff/retention read-out.
- Pick a clip and either:
- type a natural-language edit ("trim the first 2 seconds", "bigger captions") and re-render, or
- run a one-click autopilot preset, or
- export it to another aspect ratio, grab SRT/ASS captions, or generate a thumbnail.
- Generate SEO metadata for the clip, then push it to DaVinci Resolve or upload it directly to YouTube from the same card.
POST /api/jobs{"url","n"?,"guidance"?}β{"job_id"}GET /api/jobsβ[{id,title,status}]GET /api/jobs/{id}β job fields + clipsDELETE /api/jobs/{id}β delete the job dir (409 while mid-run)POST /api/jobs/{id}/reclip{"prompt"?,"n"?}β re-pick + re-render from the existing transcriptGET /api/jobs/{id}/media/{path}β serves files under the job dirPOST /api/jobs/{id}/clips/{slug}/edit{"instruction"}POST /api/jobs/{id}/clips/{slug}/renderPOST /api/jobs/{id}/clips/{slug}/variants{"aspects"?}POST /api/jobs/{id}/clips/{slug}/metadata{"goal"?}GET /api/jobs/{id}/clips/{slug}/srt?fmt=srt|assPOST /api/jobs/{id}/clips/{slug}/thumbnail{"text"?}POST /api/jobs/{id}/clips/{slug}/assist{"kind"}β broll | music | thumbtext | improveGET /api/autopilotβ preset list (viral | hormozi | clean)POST /api/jobs/{id}/clips/{slug}/autopilot{"preset"?}GET /api/assetsβ available LUTs, music, b-roll, caption styles, aspectsPOST /api/jobs/{id}/resolve{"slugs"?}β push clips to DaVinci ResolvePOST /api/jobs/{id}/clips/{slug}/youtube{"title"?,"description"?,"tags"?,"privacy"?}
The server imports the pipeline/editor/youtube/resolve modules lazily β if one
is missing or broken, the server still starts and serves existing jobs, and
only the affected endpoint returns 503.
server.pyβ FastAPI app, HTTP API, and static site host.pipeline/βdownload.py,transcribe.py,highlight.py,render.py,reframe.py(face-track),silence.py(jump-cuts),lutgen.py(LUT pack),subtitles.py(SRT/ASS),metadata.py(SEO),assist.py(creative copilot).editor/nl_edit.pyβ natural-language clip editing via the shared LLM backend.llm.pyβ shared Claude backend (CLI subscription or API SDK).youtube/upload.pyβ YouTube Data API v3 resumable upload (youtube/SETUP.md).resolve/β DaVinci Resolve bridge + push client (resolve/README.md).config.pyβ shared constants and paths; import from here, don't hardcode.data/jobs/<job_id>/β per-job working dir (gitignored).static/index.htmlβ single-file vanilla-JS UI.CONTRACT.mdβ ground-truth module/schema contract for anyone extending the pipeline.
- Automated test coverage beyond the end-to-end smoke script
- Dockerfile / one-command setup (currently assumes a local Python + ffmpeg env)
- Batch job queue / multi-video playlists
- Pluggable transcription/LLM backends beyond Whisper + Claude
- CI pipeline (lint + smoke test on push)
- Single-machine, single-user design β no auth, no multi-tenant job isolation.
- DaVinci Resolve push assumes a specific WSL2 β Windows host setup; see
resolve/README.mdfor the bridge requirements. run_smoke.pyis an informal end-to-end smoke test (downloads a real video), not a unit test suite.
MIT β see LICENSE.