Clipping bot
A long video in, short vertical clips with subtitles out, and a person approves every batch.
import { Python 3.12, FFmpeg, NVIDIA Parakeet (ONNX), MediaPipe, OpenCV, PySceneDetect, yt-dlp, Claude Code } from "sokrat";
A local tool for paid clipping campaigns: it downloads a long video from the campaign, transcribes it, lets Claude pick the strongest moments and cuts them into 9:16 clips with subtitles and the campaign's text. Every clip passes a quality check, and nothing leaves the computer until a person approves the batch.
What it is
Clipping campaigns pay for views: a creator shares a long video, and clippers turn it into short vertical clips and post them on their own accounts. Clipping bot does the slow part of that work on one computer. Given a campaign brief, it downloads the source video, checks that it really comes from the allowed channel, transcribes it, picks the moments worth a clip and cuts them into 9:16 clips with subtitles, a watermark and the text the brief asks for. It stops at a review folder: a person watches the batch and approves it.
How it works
Claude reads the transcript and chooses the moments, returning only where each clip starts and ends and its title. Everything else is decided by the program: cuts land on sentence and silence boundaries, framing follows the speaker's face, and the sound is levelled the same on every clip. A moment that cannot be cut without breaking a sentence is dropped, and an independent review writes a report for the person who approves the batch. One command runs the whole job and picks up where it stopped after a crash.
Transcription runs locally on the CPU with NVIDIA's Parakeet model (CC-BY-4.0). Only content from the campaign is used, and posting is planned through the platforms' official APIs only. The framing, cut boundaries, subtitles and export are modelled on autoclip by Jad Ghazi (MIT). The images above are from a real run: one episode from a campaign, cut into a batch of ten clips that waits for a person's review. The tool itself runs from the command line; the dashboard is an illustration drawn with that run's real numbers and frames.
