r/coolgithubprojects • • 4d ago

I built Clip Studio — a free, 100% local open-source alternative to OpusClip (DSP + local Whisper + YOLOv8 + 12h Live DVR + YouTube/IG Auto-Pilot)

Hey r/selfhosted!

I got tired of paying $30+/mo for cloud clipping tools (OpusClip, Vizard, etc.) and waiting to upload gigabytes of raw gameplay/livestream footage, so I built Clip Studio — a 100% local, MIT open-source web studio built with FastAPI + HTMX + FFmpeg.

GitHub: [https://github.com/anderj14/clip-studio](https://github.com/anderj14/clip-studio)

What it does locally (zero paid AI APIs):

- Fast highlight detection without heavy LLMs (33x realtime): Uses classic DSP (RMS dB energy, positive loudness flux, grayscale frame-diff normalized via Median/MAD Z-score) + FFmpeg -skipframe noref. Analyzes a 1-hour 1080p60 video in 75 seconds on a regular Mac/CPU.

- Karaoke subtitles & top hooks (no libass required): Runs faster-whisper (small, CPU int8) locally for word-level timestamps and burns highlighted subtitles + hooks via Pillow RGBA PNGs + ffconcat + native FFmpeg overlay.

- 9:16 Auto-Framing: YOLOv8n person tracking (follow), fixed anchor, or full-frame blur for multi-person podcasts/streams.

- Zero-storage YouTube Live Monitor: Scans live streams in configurable blocks via 12h parallel MPEG-DASH DVR (even using negative live timestamps like -2:10:23 -> -1:00:00) or real-time HLS, cuts only peak clips, and immediately deletes the raw temp block (0 GB retained).

- Multi-channel Auto-Pilot: Isolated profiles (separate folders, presets, languages, and OAuth tokens), collision-free YouTube Shorts scheduling (chains right after your last publishAt + optional quiet hours), and spaced Instagram Reels publishing via official Meta Graph API rupload.

Runs completely locally on 127.0.0.1:8765. Would love feedback, feature ideas, or PRs from the community!

9 Upvotes

2 comments sorted by

1

u/donvvo 4d ago

The 33x realtime highlight pass is the part that would be hard to do without paid APIs, so that's the piece worth a closer look. On the talk side, energy-based detection works great for gameplay and streams, but on a webinar or interview the best 30 seconds is often a quiet, well-made point with no loudness spike. The loudest moment and the best moment can be different clips. Full disclosure, I built Social Charm for that second case (webinars and meetings, not streams), so I'm biased. That's the gap it was made to fill.