Skip to content

Instantly share code, notes, and snippets.

View grantspark's full-sized avatar

Grant Nieddu grantspark

View GitHub Profile
@grantspark
grantspark / main.py
Last active March 2, 2026 00:41
clip-cutter main.py v2 - with extract-audio endpoint
"""
Clip Cutter v2 — VPS FFmpeg Wrapper for Video-to-Shorts Pipeline
Accepts HTTP requests from n8n Cloud, downloads source files from
Google Drive, cuts vertical short clips with FFmpeg, burns captions,
and uploads finished clips back to Google Drive.
No yt-dlp / YouTube dependency. All source files come from Drive.
Deployment: /opt/clip-cutter/ on Grant's VPS