Klipper-In (AI Viral Clip Extractor)
An AI-powered YouTube viral clip extractor and social studio that analyzes virality scores, trims segments into 9:16 vertical format for TikTok/Reels/Shorts, and generates dynamic karaoke subtitles using Gemini AI, yt-dlp, and FFmpeg.

Project Case Study & Overview
Turning a two-hour podcast or a MotoGP race into vertical short clips usually means doing the same tedious loop over and over: scrub through the timeline, guess which 60 seconds might hold attention, crop a 16:9 frame into 9:16, and type out word-by-word captions. I built Klipper-In to automate that loop from a single YouTube link.
You paste a URL, pick how the AI should judge the footage, choose how many clips you want, and let the server handle extraction, scoring, cropping, and subtitle rendering in 1080p.
Why One Scoring Formula Doesn't Work
Early on, it became obvious that a good podcast clip and a good racing clip look nothing alike. A podcast clip lives or dies on a strong opening line, spoken insight, and pacing. A MotoGP or football highlight might barely have any dialogue at all, because the whole point is a sudden spike in crowd noise, engine revs, or visual action.
So Klipper-In splits its AI Virality Scoring Engine into two distinct modes:
What You Can Control Before Rendering
Instead of forcing every video through one rigid preset, the studio gives you direct control over the output batch:
How the Stack Fits Together
The frontend runs on React 18, Vite, and Tailwind CSS, using Lucide React for icons and canvas-confetti for completion states. Authentication and client-side session state connect directly to Supabase via the official JavaScript SDK.
On the backend, an Express server on Node.js coordinates the heavy lifting. Google Gemini AI (Pro and Flash models) evaluates transcripts and scores candidate timestamps. Once the segments are locked in, yt-dlp pulls the source media and FFmpeg (fluent-ffmpeg with bundled FFmpeg and FFprobe binaries) trims the exact timestamps, crops to 9:16 at 1080p, and burns in the synchronized subtitles. To keep the public API safe from abuse, the server enforces Helmet security headers, CORS rules, and express-rate-limit.