Bobine - AI Short-Form Video Generator (CLI)
Built Bobine, a personal Python CLI that turns a URL into a vertical short-form video using script generation, speech synthesis and FFmpeg.
Bobine is a Python CLI that takes a URL and a background gameplay clip, and produces a vertical 30-second video with AI-written script, AI voiceover, and word-synced burned-in captions. Pipeline: scrape the page with httpx + trafilatura, call Claude Sonnet 4.5 via structured tool use to write a script, generate voiceover with edge-tts (Microsoft Edge's TTS endpoint), use edge-tts word boundaries directly for per-word caption timings (no Whisper, no forced alignment), then compose everything with a single FFmpeg pass: loop the background, center-crop to 9:16, burn the ASS subtitles, mux the audio. Three modes: fully automated (URL → video), pre-written script (no script-generation API call), and text-file mode for paywalled or login-walled pages. At the April 2026 milestone, the estimated Claude script-generation API component was approximately $0.01 per example video. That was a dated component estimate, excluding compute, storage, other services and future pricing changes. The CLI is the foundation underneath a larger Bobine product roadmap covering branded characters, cloned voices, real AI video generation, and content calendars.