Skip to content
Kyr-69Public

About

QuiK-Clip: Automated 16:9 to 9:16 vertical short-form clipper with YOLOv11 tracking/cutout, faster-whisper karaoke captions, DMCA-safe audio, NVENC, and MCP server.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

QuiK-Clip — Automated 16:9 to 9:16 Short-Form Clipper

PyPI Release Python 3.12+ FFmpeg YOLOv11 MCP Server License: MIT GitHub Stars

Live Showcase  ·  Features  ·  5 Clip Styles  ·  Quickstart  ·  MCP Server  ·  Website

QuiK-Clip Before & After Demo — 16:9 Raw Stream VOD to 9:16 Vertical Short with 60Hz Tracking, Facecam PiP, and Karaoke Captions
16:9 raw stream VOD → 9:16 post-ready Short in one local command (watch HD MP4 with audio  ·  try all 5 styles live).

A 100% free, local, open-source (MIT) alternative to Powder.gg, OpusClip, and Eklipse — zero watermarks, zero limits, zero monthly fees.

QuiK-Clip (quik-clip-mcp / dropzone_clipper) is a packaged local-first and remote-capable automated clipping pipeline (CLI, Local Studio Web UI, OBS replay watcher, and universal FastMCP server) that turns 16:9 videos and livestreams into post-ready 9:16 vertical short-form clips (1080x1920@30fps, SAR 1:1, 30s default) with 60 Hz YOLOv11-ByteTrack PCHIP camera tracking, 5 kinetic word-synced .ass caption presets, 9:16 platform safe zones, audio-peak punch-in zooms, DMCA-safe ducked background audio, Publish Kits (.cover.jpg, .post.txt, FCPXML 1.10 .fcpxml, CMX 3600 .edl, .kit.zip), and cross-platform GPU acceleration (encoder: "auto").

Tip

Live on PyPI — zero clone required: run uvx quik-clip-mcp for the MCP server, or uv tool install quik-clip-mcp && quik-clip ui to open the offline dark NLE Studio at http://127.0.0.1:8765 with interactive drag-to-select facecam preview, live render progress, and 9:16 playback.

For AI coding agents and cold-start operators, see AGENTS.md, agents/clippy.md, skills/quik-clip/SKILL.md, or the MCP resources quikclip://guide and quikclip://config.


Features

  • Multi-Signal, Voice Bookmarks & Emote-Weighted Chat Detection — Combines 1s-bin RMS dBFS & spectral centroid peaks, faster-whisper transcripts (large-v3-turbo default + Silero VAD), PySceneDetect cuts, YouTube most-replayed heatmaps, emote-weighted bot-filtered chat spikes (weights hype emotes like KEKW, LUL, POG, CLUTCH, 💀, 🔥 2.5–3× while filtering bot authors such as Nightbot/StreamElements and !commands), and voice-triggered "Clip It!" bookmarks (saying "clip that", "clip it", or "save that" on stream auto-anchors [t-24s, t+3.5s] at top priority). Optionally set QUIK_CLIP_LLM_BASE_URL + QUIK_CLIP_LLM_MODEL (local Ollama, OpenAI, DeepSeek, or Gemini) to pick complete funny/clutch story arcs and hooks automatically.
  • Clean Cuts, Auto Hooks & Virality Score (0–100) — Sliding-window scoring (0.65*mean + 0.35*peak) snapped to natural sentence boundaries and scene cuts, filler-filtered auto-derived hook headlines, and a transparent Virality Score (0–100) breakdown (energy, hook, chat, voice_bookmark) surfaced in CLI JSON, MCP responses, and Studio UI cards.
  • 5 Ready-to-Post 9:16 Clip Styles & Audio-Peak Punch-In Zooms — Automatic facecam detection, studio rounded dual-bezel facecam PiP (--mode pip / --mode greenscreen), 60 Hz YOLOv11n + ByteTrack PCHIP panning, cam+game split, cinema blur, two-speaker splits, and audio-peak punch-in zooms (--punch-zoom / --no-punch-zoom) delivering smooth single-pass cosine sendcmd zoom pulses (1.0x -> 1.14x) on energy spikes.
  • Kinetic ASS Captions, Power-Word Emphasis & 9:16 Platform Safe Zones — 5 pause/punctuation-aware word-synced .ass karaoke presets (--caption-style: wordpop, hormozi, mrbeast, minimal, neon) using bundled Fira Sans with kinetic word bounce (active-word scale pop) and power-word emphasis (contrasting accent color on numbers, exclamations, and power words), 9:16 platform safe zones (--safe-zone universal|tiktok|shorts|reels|none) protecting hooks, captions, and facecam PiP from TikTok/Reels/Shorts UI bars, plus optional HyperFrames GSAP transparent VP9 hook overlays.
  • Local Studio Web UI (quik-clip ui) — Offline dark NLE workbench on 127.0.0.1:8765 with URL/local picker, interactive drag-to-select facecam box preview, interactive Safe-Zone dead-zone overlay toggle, Virality Score breakdown cards, live progress, 9:16 playback, and Publish Kit downloads.
  • OBS Replay Buffer Auto-Clipper (quik-clip watch) — Watches your replay folder (e.g. quik-clip watch ~/Videos/Replays) and auto-renders 9:16 clips + Publish Kits in the background whenever you save a replay.
  • NLE Publish Kits & DMCA-Safe Mastering — Publish Kits bundle .cover.jpg, .post.txt, FCPXML 1.10 (.fcpxml) and CMX 3600 EDL (.edl) timelines for DaVinci Resolve, Final Cut Pro, and Premiere Pro — paired with 6 sidechain-ducked DMCA-safe audio presets (anoisesrc ambient fallback, CATALOG.json attribution credits in {stem}.meta.json, -14 LUFS 48 kHz AAC mastering).
  • Cross-Platform HW Acceleration & Universal MCP — encoder: "auto" and device: "auto" auto-detect NVIDIA NVENC/CUDA, Apple Silicon VideoToolbox/MPS, AMD AMF/VAAPI, Intel QSV, and CPU libx264/int8 fallback, backed by a FastMCP server (stdio, streamable-http, sse) with SQLite WAL job queueing and optional Bearer API-key user isolation.

5 Clip Styles

Style CLI Flag Layout Best For
Facecam PiP (default) --mode pip / --mode greenscreen Studio rounded dual-bezel facecam PiP over 60 Hz PCHIP-tracked vertical gameplay (auto-falls back to track if no facecam) Gaming streams, live reactions, commentary
Auto-Follow --mode track 60 Hz YOLOv11n + ByteTrack PCHIP smooth panning with deadzone, challenger hysteresis, and hard-cut resets IRL streams, vlogs, tutorials, solo commentary
Cam + Game --mode split Auto-detected facecam stacked above tracked gameplay in a classic 9:16 split Twitch VODs, horror games, big reaction moments
Cinema Blur --mode blur Full 16:9 frame centered sharp over a darkened blurred 9:16 backdrop (zero crop) HUD-heavy games, esports plays, slides, cinematic clips
Two-Person Split --mode dual Auto-detected two-speaker 50/50 top-and-bottom vertical stack Podcasts, interviews, co-op streams, debates

Pipeline & Core Modules

Source (MP4 / URL / OBS Watch) ──► CLI / Studio UI / FastMCP + SQLite Queue (mcp_server.py / queue.py)
  └─► 1. Config & Orchestration (config.py / pipeline.py) — 9-section config.json + auto HW/device detection
  └─► 2. Signals (signals.py)          — ffprobe, yt-dlp, faster-whisper, RMS/centroid, PySceneDetect, heatmap, emote-weighted chat
  └─► 3. Selection (selector.py)       — sliding window (0.65*mean + 0.35*peak), voice bookmarks, chat spikes, Virality Score (0–100), optional LLM arcs
  └─► 4. Reframe (reframe.py)          — 5 layouts, 60Hz YOLOv11-ByteTrack PCHIP, safe-zone clamping, cosine sendcmd punch-in zooms
  └─► 5. Render (render.py)            — 5 kinetic .ass presets (word bounce + power-word accent), BG ducking/anoisesrc, auto HW encode, .meta.json

Core Modules

Path Responsibility
AGENTS.md Concise cold-start reference for AI coding agents (module map, run/verify commands, hard invariants)
agents/clippy.md Portable Clippy specialist agent (9:16 clipping workflow, framing/audio guardrails, visual/technical QA checklist)
server.json / .mcp.json Official MCP Registry manifest (io.github.kyr-69/quik-clip-mcp) and zero-clone uvx quik-clip-mcp config
skills/quik-clip/SKILL.md Bundled agent skill + Claude Code / Codex plugin marketplace manifests (.claude-plugin/plugin.json)
Dockerfile Slim self-hosted container running quik-clip-mcp over Streamable HTTP with /health
config.example.json 9-section config template (detection, asr, captions, reframe, bg_music, render, queue, paths, server)
assets/music/CATALOG.json DMCA-safe music pack attribution catalog (also bundled in wheel data/music/)
clip.py Repo-root CLI wrapper calling dropzone_clipper:main (check, ingest, detect, run, outputs, ui, watch, mcp)
src/dropzone_clipper/init.py quik-clip CLI (check, ingest, detect, run, outputs, ui, watch, mcp, --caption-style, --json, --version, --export-kits, --fresh)
src/dropzone_clipper/paths.py Relocatable QUIK_CLIP_HOME / XDG data + model cache + importlib.resources bundled fonts/catalog resolver
src/dropzone_clipper/resume.py pipeline_stamp.json stage-artifact resume and --fresh cache invalidation
src/dropzone_clipper/publish_kit.py Cover frame (.cover.jpg), post copy (.post.txt), FCPXML 1.10 (.fcpxml), CMX 3600 EDL (.edl), and Publish Kit (.kit.zip) generator
src/dropzone_clipper/config.py Frozen Config dataclass, JSON loader, apply_overrides(), encoder: "auto" / device: "auto", resolve_bg_music_config(), QUIK_CLIP_API_KEYS_JSON (legacy DROPZONE_* supported)
src/dropzone_clipper/pipeline.py Stdout-clean orchestration (check_environment, detect_highlights, render_segment, run_pipeline, progress/cancel callbacks)
src/dropzone_clipper/signals.py ffprobe, yt-dlp ingest & duration probe, 16 kHz WAV extraction, RMS/centroid bins, PySceneDetect, faster-whisper ASR, heatmap & chat parsers
src/dropzone_clipper/selector.py score_windows(), select_chat_spike_windows(), optional LLM story-arc selection (QUIK_CLIP_LLM_*), cut/speech snapping, filler-filtered derive_hook_text()
src/dropzone_clipper/reframe.py 5 vertical layouts, 60 Hz YOLOv11n + ByteTrack PCHIP panning, studio rounded dual-bezel facecam PiP, facecam/dual detection
src/dropzone_clipper/render.py 5 .ass caption presets, HyperFrames VP9 overlay runner, BG music + anoisesrc + EQ/ducking/loudnorm/limiter filtergraph, cross-platform HW encode (encoder: "auto"), .meta.json
src/dropzone_clipper/queue.py SQLite WAL JobQueue, bounded ThreadPoolExecutor, stage/ETA/poll_after_sec, cancel_job subprocess kill, partial/interrupted recovery
src/dropzone_clipper/mcp_server.py Universal FastMCP server (stdio, streamable-http, sse), 11 tools, 4 resources, 3 prompts, Bearer auth, /health & /downloads/{filename}
hyperframes/compositions/hook-banner.html Animated top hook pill (0–4s) + persistent @handle watermark driven by GSAP

Quickstart & CLI Reference

1. Install (Live on PyPI)

Requires Python 3.12+, uv, and FFmpeg on PATH. Cross-platform HW acceleration (encoder: "auto", device: "auto") auto-detects NVIDIA NVENC/CUDA, Apple Silicon VideoToolbox/MPS, AMD AMF/VAAPI, Intel QSV, and falls back cleanly to CPU libx264/int8.

# 1-line zero-clone MCP server (live on PyPI)
uvx quik-clip-mcp

# Or install the CLI, Studio UI, OBS watcher, and MCP server globally
uv tool install quik-clip-mcp

# Verify GPU/HW encoders, FFmpeg, YOLOv11, faster-whisper, and CLI tools
quik-clip check

# Launch the offline Local Studio Web UI (http://127.0.0.1:8765)
quik-clip ui

# Watch OBS Replay Buffer saves and auto-render 9:16 clips + Publish Kits
quik-clip watch ~/Videos/Replays --mode pip --export-kits
Install from source (development)
git clone https://github.com/Kyr-69/QuiK-Clip.git
cd QuiK-Clip
uv sync
cp config.example.json config.json   # optional local overrides (gitignored)
uv run python clip.py check
uv run pytest -v

2. Render Vertical Clips

Defaults from config.json: 30s, 1080x1920@30fps, mode=pip (greenscreen), caption_style=wordpop, max_clips=8, bg_preset=chill_ukulele, encoder=auto, device=auto.

# Quick run on a local recording or YouTube/Twitch URL
quik-clip run input.mp4 --mode pip --caption-style hormozi --bg-preset cozy_lofi --export-kits

# Full studio options
quik-clip run input.mp4 \
  --mode pip \
  --caption-style mrbeast \
  --bg-preset cozy_lofi \
  --whisper small \
  --overlay hyperframes \
  --handle '@dropzoneclips' \
  --len 30 \
  --top 3 \
  --export-kits \
  --output-dir output

# Optional: enable LLM story-arc highlight selection (Ollama, OpenAI, DeepSeek, Gemini)
export QUIK_CLIP_LLM_BASE_URL="http://127.0.0.1:11434/v1"
export QUIK_CLIP_LLM_MODEL="qwen2.5:14b"
# export QUIK_CLIP_LLM_API_KEY="sk-..."   # required for hosted endpoints
quik-clip run input.mp4 --mode pip --export-kits

Key Flags (quik-clip run)

Flag Default (config.json) Purpose
--config ./config.json Optional path to a custom config JSON
--mode pip (greenscreen) pip / greenscreen, track, split, blur, or dual
--caption-style wordpop .ass caption preset with kinetic word bounce & power-word accent: wordpop, hormozi, mrbeast, minimal, neon
--safe-zone universal 9:16 platform safe zone (universal, tiktok, shorts, reels, none) keeping hooks, captions, and facecam PiP clear of UI bars
--punch-zoom / --no-punch-zoom true Toggle smooth single-pass cosine sendcmd punch-in zooms (1.0x -> 1.14x) on audio energy spikes
--cam-box "" Manual webcam crop x,y,w,h for pip/greenscreen/split (auto-detected if omitted)
--section "" Optional yt-dlp --download-sections range (e.g. *815-850)
--len 30.0 Target clip duration in seconds
--top 8 Maximum non-overlapping clips to render
--fps 30 Output constant frame rate
--whisper large-v3-turbo faster-whisper model (tiny, base, small, medium, large-v3-turbo)
--hook "" Top hook banner text (auto-derived from clip speech or LLM if omitted)
--overlay none none or hyperframes (animated VP9 WebM hook pill + watermark)
--handle @dropzoneclips Creator watermark handle for HyperFrames
--bg-preset chill_ukulele DMCA-safe BG preset (chill_ukulele, cozy_lofi, ambient_brown, ambient_rain, comedy_gaming, dreamy_ambient)
--no-bg-music false Disable background music and anoisesrc ambient fallback
--no-asr false Skip Whisper transcription and burned-in captions
--trim-idle false Strip static idle frames first via auto-editor
--chat "" Path to TwitchDownloader chat JSON or yt-dlp .live_chat.json (emote-weighted 2.5–3×, bot & !command filtered)
--chat-only false Select clips directly from chat spikes without scanning full VOD
--chat-bin 10.0 Chat spike bin width in seconds
--pre-roll 20.0 Seconds before chat spike to start clip
--export-kits false Generate .cover.jpg, .post.txt, .fcpxml, .edl, and .kit.zip Publish Kits
--fresh false Bypass cached signal/stamp files and re-analyze from scratch
--work-dir ./work Intermediate .wav, .ass, .sendcmd, .webm, and signal cache directory
--output-dir ./output Destination folder for final MP4s, .meta.json sidecars, and Publish Kits

Long Livestream Workflow (2h+ VODs)

Avoid downloading multi-gigabyte 1080p streams up front—pull lightweight audio & auto-subs first, then slice only candidate 35s windows with yt-dlp:

# 1. Grab audio + auto-subs for fast keyword/energy scanning
yt-dlp -x --audio-format m4a --write-auto-sub --sub-lang en --sub-format json3 -o 'work/vod.%(ext)s' "URL"

# 2. Download only candidate ~35s sections in 1080p60
yt-dlp -f '299+140/bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/best' \
  --merge-output-format mp4 \
  --download-sections '*815-850' --force-keyframes-at-cuts \
  -o 'work/seg_815.mp4' "URL"

# 3. Render 30s vertical clip
uv run python clip.py run work/seg_815.mp4 --overlay hyperframes --top 1 --output-dir output

MCP Server

dropzone-clipper-mcp exposes the full pipeline to AI agents over stdio (local desktop/CLI clients) and Streamable HTTP / SSE (remote/hosted clients).

Exposed Tools (11), Resources (4) & Prompts (3)

Tool Access Description
get_version() Read Returns installed quik-clip-mcp version, install mode (repo/package), and data/cache roots
check_health() Read Verifies GPU/HW encoders (NVENC, VideoToolbox, AMF, QSV, VAAPI), PyTorch, FFmpeg, yt-dlp, faster-whisper, model cache, and binary readiness
get_config() Read Returns the active 9-section config dict with server.api_keys redacted
list_styles() Read Lists all 5 vertical layout modes, 5 caption presets, and 6 DMCA-safe background audio presets
list_recordings(directory?, limit?, since_hours?) Read Scans local OBS/recording folder newest-first (local stdio only; disabled for remote HTTP callers)
detect_highlights(source, overrides?) Read Previews ranked [start, end] highlight candidates with Virality Score (0–100) breakdown (energy, hook, chat, voice_bookmark) without rendering
submit_clip_job(source, ..., export_kits?, fresh?) Write Enqueues an async multi-clip render job in the SQLite WAL queue with progress & cancellation
get_job_status(job_id, export_kits?) Read Polls status, stage, progress, eta_sec, poll_after_sec, rendered clips, and optional Publish Kits
cancel_job(job_id) Write Safely terminates active FFmpeg/yt-dlp subprocesses and keeps already-rendered clips
list_jobs(user_id?, limit?) Read Lists recent jobs (scoped to caller on remote HTTP)
render_segment(source, start, end, ..., export_kits?) Write Synchronously renders one exact [start, end] clip with optional Publish Kit
  • Resources: quikclip://guide, quikclip://config (plus dropzone://guide and dropzone://config aliases).
  • Prompts: clip_gaming_vod, clip_chat_spikes, batch_clip_folder.
  • HTTP Routes: GET /health and GET /downloads/{filename} (.mp4, .json, .jpg, .zip only, Bearer-protected when API keys are configured).

Zero-Clone Install (uvx / PyPI)

# Run MCP server directly from PyPI with uvx
uvx quik-clip-mcp

# Or install CLI + Studio UI + OBS watcher + MCP globally
uv tool install quik-clip-mcp   # or: pip install quik-clip-mcp
quik-clip --version
quik-clip check --json
quik-clip ui
quik-clip watch ~/Videos/Replays --mode pip --export-kits
quik-clip run input.mp4 --mode pip --caption-style wordpop --export-kits --json
quik-clip mcp

# Claude Code
claude mcp add quik-clip -- uvx quik-clip-mcp

Local Clients (stdio)

Run zero-clone with uvx quik-clip-mcp, or from a local checkout with uv run dropzone-clipper-mcp (pass --config /path/to/config.json or QUIK_CLIP_CONFIG when launching from outside the repo):

  • Claude Desktop / Cursor / Windsurf / Cline (mcpServers JSON):

    {
      "mcpServers": {
        "dropzone-clipper": {
          "command": "uv",
          "args": ["--directory", "/path/to/QuiK-Clip", "run", "dropzone-clipper-mcp"]
        }
      }
    }
  • Claude Code:

    claude mcp add dropzone-clipper -- uv --directory "/path/to/QuiK-Clip" run dropzone-clipper-mcp
  • VS Code / GitHub Copilot (.vscode/mcp.json):

    {
      "servers": {
        "dropzone-clipper": {
          "type": "stdio",
          "command": "uv",
          "args": ["--directory", "/path/to/QuiK-Clip", "run", "dropzone-clipper-mcp"]
        }
      }
    }
  • Hermes Agent (~/.hermes/config.yaml):

    mcp_servers:
      dropzone-clipper:
        command: uv
        args: ["--directory", "/path/to/QuiK-Clip", "run", "dropzone-clipper-mcp"]

Remote Clients (streamable-http / sse)

Start the HTTP server with Bearer API-key auth and a public base URL so clips return authenticated /downloads/{filename} links (remote authenticated callers are restricted to http(s) URLs and isolated per user):

export QUIK_CLIP_API_KEYS_JSON='{"qc_live_secret": {"user_id": "creator1"}}'
export QUIK_CLIP_PUBLIC_BASE_URL="https://clip.example.com"

uvx quik-clip-mcp \
  --transport streamable-http \
  --host 0.0.0.0 \
  --port 8000 \
  --stateless

Legacy DROPZONE_* environment variables (DROPZONE_API_KEYS_JSON, DROPZONE_PUBLIC_BASE_URL, DROPZONE_CONFIG) remain supported for backwards compatibility.

Connect remote MCP clients to https://clip.example.com/mcp with header Authorization: Bearer <token> (or /sse with --transport sse).


Static Website (web/)

Live interactive 5-style studio showcase: https://quik-clip-rho.vercel.app/ (deployed on Vercel; HQ 1080x1920@60fps showcase clips stream from the showcase-clips GitHub Release so git clone stays lightweight).

The React 19 + Vite + Tailwind CSS v4 + TypeScript source lives in web/:

cd web
npm install
npm run dev     # Local dev server
npm run build   # Type-check & production build -> web/dist/
  • Deploy (Vercel / Cloudflare Pages): Set Root Directory to web, Build Command to npm run build, and Output Directory to dist.

Privacy

QuiK-Clip runs 100% locally with zero telemetry, analytics, or user tracking. Network requests only occur when you pass a remote URL to yt-dlp, download Whisper/YOLO weights on first run, or explicitly opt into QUIK_CLIP_LLM_BASE_URL for LLM story-arc highlight selection and hook polishing.


Credits & Acknowledgments

QuiK-Clip builds on and draws inspiration from these open-source projects:


License

Released under the MIT License — Copyright (c) 2026 Kyr-69.

About

QuiK-Clip: Automated 16:9 to 9:16 vertical short-form clipper with YOLOv11 tracking/cutout, faster-whisper karaoke captions, DMCA-safe audio, NVENC, and MCP server.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages