Docs Overview
ClipCut Documentation
Architecture, installation, AI providers, speech models, and production deployment for ClipCut.
ClipCut is a free, MIT-licensed, self-hosted AI video clipping studio built with FastAPI, FFmpeg, yt-dlp, librosa, and local or cloud speech & language models.
How the Pipeline Works
- Ingestion: Paste a YouTube, Twitch, or Kick URL, upload a local file in resumable chunks, or monitor a live creator stream.
- Transcription: Pulls existing captions via
youtube-transcript-apioryt-dlpfirst, falling back to multi-languagefaster-whisper. - Moment Detection & Scoring: Tags vocal energy peaks with
librosa.feature.rms(), attaches Most-Replayed viewer heatmaps, and scores hooks with your configured AI provider (or loudness fallback without a key). - Studio Editing & Rendering: Renders
9:16,1:1, or16:9clips with word-level ASS captions (Bounce,Hype,Clean) and background music sidechain auto-ducking.
Repository Map
studio/server.py— FastAPI routes, auth/rate-limit middleware, media streamingstudio/jobs.py— Fair multi-user job queue and video pipeline orchestrationstudio/media.py—yt-dlpingestion, audio probing, and replay heatmapsstudio/transcribe.py— Multi-language ASR (faster-whisper, optional GPU worker)studio/brain.py— Hook scoring prompts, gaming rules, and feedback personalizationstudio/render.py— FFmpeg cutting, layouts, ASS captions, and BGM mixingweb/index.html— Single-file zero-build studio web application