Kembali ke Proyek
Web Development

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.

ReactViteTailwind CSSExpressGoogle Gemini AISupabaseFFmpegyt-dlp
https://klipperin.my.id
Klipper-In (AI Viral Clip Extractor)

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:

  • Speech and Interview Mode: Built for podcasts, lectures, sermons, and storytelling. It scores candidate segments by weighting the first 3 seconds as a hook, measuring insight and emotional density, checking whether the story actually resolves inside the clip window, and tracking speaking pace in words per minute.
  • Sports and Racing Action Mode: Built for MotoGP, Formula 1, street racing, football, and extreme sports. Instead of relying solely on speech transcripts, it looks for decibel spikes and peak action moments so high-energy segments surface naturally.
  • 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:

  • Clip Count and Capacity Estimation: You can request 5, 10, 15, or 20 clips depending on your credit tier. Before rendering starts, the interface estimates the minimum source duration needed (for example, 5 clips at 90 to 120 seconds work best on an 8 to 10 minute video) so the AI doesn't recycle overlapping endings.
  • Target Duration Windows: Pick between 60-90s, 90-120s, or 120-180s depending on whether the clip is heading to TikTok, Instagram Reels, or YouTube Shorts.
  • Dynamic Subtitles and Language: Render clips with Karaoke word-by-word highlights, Pop Bold captions, or a clean No Subtitle export, with output language set to ID, EN, or AUTO.
  • Accounts, Collections, and Credits: Users can register, track AI credits, and save generated clips into personal collections.
  • 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.

    — Let's Connect

    Let's Bring Your Ideas to Life

    Have an ambitious product to launch, a web system that needs scaling, or an open engineering role? Send a message and let's discuss.

    Social Profiles:

    Send a Direct Message

    Fill out the form below. I usually respond within 24 hours.

    Klipper-In (AI Viral Clip Extractor) | Eriko Syah Putra | Eriko Syah Putra