NaufalRizqullah/opensource-clipping

Open-source AI video clipper with Web Studio, CLI & Colab/Kaggle notebooks. Turn long videos and podcasts into shorts with face tracking, karaoke captions, split-screen, B-roll, voiceovers, and scheduled YouTube/Facebook uploads. Supports Gemini, NVIDIA NIM & self-hosted vLLM.

What it solves

Creating engaging short-form content from long videos is time-consuming. This project automates the entire process: it downloads a video, transcribes it, picks the most interesting segments, and renders them as polished vertical or horizontal clips with hook intros, karaoke-style subtitles, background music, and even auto-generated thumbnails. It also prepares metadata for platforms like YouTube and TikTok and can auto-upload the finished clips.

How it works

The pipeline runs as a Python command-line tool (or through a web studio). It starts by fetching a video from YouTube, TikTok, Instagram, or Google Drive. Faster-Whisper transcribes speech word-by-word. An AI curator—using Google Gemini, NVIDIA NIM, or a self-hosted vLLM server—analyzes the transcript to select highlight segments and generate titles and descriptions. The video is then processed: face tracking keeps the subject framed, a 3-second hook teaser with glitch transitions is added, karaoke subtitles are rendered, and optional extras like B-roll, background music (with ducking), watermarks, and AI voice-overs can be applied. For podcasts, split-screen and camera-switch modes use speaker diarization to follow active speakers. Finally, clips are rendered at the chosen aspect ratio and can be auto-uploaded to YouTube and Facebook Reels.

Who it’s for

Content creators, podcasters, social media managers, and teams that produce short-form video at scale. It targets users who want to repurpose long YouTube videos or podcasts into multiple short clips without manual editing. It’s also beneficial for developers who want to extend or customize the pipeline—the project is open source and welcomes contributions.

Highlights

  • AI transcription with Faster-Whisper (large-v3) at word level.
  • AI content selection and metadata generation via Gemini, NVIDIA NIM, or self-hosted vLLM.
  • Smart auto-framing with face tracking (MediaPipe or YOLO) and smooth pan algorithms.
  • Cinematic hook teasers with glitch transitions and dark overlays.
  • Word-by-word karaoke subtitles (.ASS) with kinetic typography options.
  • B-roll integration from Pexels with crossfade and Ken Burns effects.
  • Podcast-specific modes: split-screen and camera-switch using speaker diarization.
  • Auto-uploading to YouTube and Facebook Reels with scheduling.
  • Web Studio (Clipping Studio) hosted on GitHub Pages for a GUI over the pipeline.
  • Runs on Google Colab or Kaggle with a free GPU; also works locally.

Related

  • Project
  • Project
  • Project
  • Project