Skip to content

About

Free, local AI video clipper. Paste a YouTube link and get captioned vertical clips for Shorts, Reels and TikTok. Viral picks or split into parts, custom length range.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Clipper

A free, local tool. Paste a YouTube link and get captioned vertical clips.

  • Viral mode: Gemini picks the best moments.
  • Split mode: the whole video is cut into Part 1, Part 2, ...
  • You set the clip length range (for example 30-60 or 90-170 seconds).
  • Podcast-aware layout: crops on one speaker, shows the full frame on side-by-side shots.
  • Runs on CPU. No paid services.

Windows only for now.

Use it only on videos you own or have permission to reuse

Downloading and re-uploading other people's videos can break YouTube's terms and copyright law.

Setup

  1. Install Python 3.10 or newer from python.org. Tick "Add Python to PATH". (Developed and tested on Python 3.13.)

  2. Install ffmpeg. In a terminal run: winget install Gyan.FFmpeg Then open a new terminal window.

  3. Get a free Gemini API key at aistudio.google.com/apikey.

  4. Save the key once. In a terminal run:

    setx GEMINI_API_KEY "your-key-here"
    

    Then close that terminal. Split mode works without a key. Viral mode needs it.

  5. Double-click setup.bat. It installs everything and downloads a small face-detection model.

Run

Double-click start_clipper.bat. Your browser opens at http://localhost:5000. Refresh 2-5 times if it shows any error. Close the black window to stop the tool.

Project structure

  • app.py: Flask server and job handling
  • pipeline.py: runs the full flow from download to clips
  • downloader.py, transcribe.py, sentences.py: get the video and build sentences
  • splitter.py, picker.py: decide the clip ranges (Split and Viral modes)
  • captions.py, layout.py, render.py: captions, speaker layout and final video
  • templates/, static/: browser UI

Notes

  • Transcription is the slow part: roughly 1 minute per 5 to 6 minutes of video on a normal CPU.
  • Results are saved in the output folder. The page lists previous results, and you can free disk space by deleting a video's downloaded source (clips are kept).
  • If downloads stop working, update the downloader: venv\Scripts\pip install -U yt-dlp
  • Privacy: in Viral mode the transcript text is sent to Google's Gemini API. Do not use confidential videos.
  • Face detection can miss a face when someone turns away, so a layout can occasionally switch late.

About

Free, local AI video clipper. Paste a YouTube link and get captioned vertical clips for Shorts, Reels and TikTok. Viral picks or split into parts, custom length range.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages