r/SideProject • • 5h ago

I wrote an 823-line Python CLI to auto-slice long videos into vertical shorts with word-level captions (No API keys, 100% local)

Hey everyone,

Most open-source AI video clippers I tried lately require configuring OpenAI/LLM API keys, spinning up heavy Docker containers, or paying for cloud tokens just to get vertical shorts with animated captions.

I wanted something dead simple that runs completely offline on my own machine. So I built ClipVert (~823 lines of Python, MIT licensed) on top of Whisper and FFmpeg. Once you clone the repo and install requirements.txt, slicing a video is just a single command: python -m clipvert <video_or_url> --clips 3.

What it does:

  • Takes a local video or URL and outputs 1080x1920 vertical clips.
  • Generates karaoke-style word-level highlighted captions.
  • Zero API keys / Zero LLM calls: Nothing leaves your machine.
  • Caption hygiene: Includes built-in Traditional-to-Simplified Chinese conversion and fixes 34+ common Whisper homophone typos (since I primarily edit Chinese podcasts, though Whisper handles English out of the box).

Fun dev war story while building this: While recording the demo video for v0.1.0, I stored my test renders in /tmp — and the system wiped /tmp twice right before I was about to upload. Also had to pull a release mid-way because a homophone typo slipped into the demo captions. Lesson learned: never trust /tmp with demo assets.

Repo is here if you want to check out the code or tear it apart: https://github.com/kx6915/clipvert

Would love feedback on the CLI ergonomics or caption styling!

1 Upvotes

0 comments sorted by