Disclosure: I built AutoClipper. The code is free and MIT licensed. There is also a $7 setup pack for people who would rather not open a terminal. Links at the end.

Why I built it

Clip generators usually want two things: a monthly fee, and a copy of your video on their servers. If you are cutting a client interview, a lecture, or a podcast, that is a lot of trust for a job that is mostly ffmpeg plus a speech to text model.

I wanted the same result locally. So AutoClipper takes a long video, scores the passages worth clipping, and cuts vertical 9:16 clips with word by word captions. Nothing is uploaded.

What it actually produces

I ran it on one public domain video: John F. Kennedy's 1962 Rice University speech, 18 minutes 18 seconds, from Wikimedia Commons. One CPU core, about 96 seconds of processing, no manual editing.

It cut these five clips:

  • 1:58 to 2:24 (25 s), score 1.96
  • 8:46 to 9:07 (21 s), score 2.2
  • 9:13 to 9:39 (26 s), score 2.11
  • 16:20 to 17:03 (43 s), score 1.82
  • 17:38 to 17:58 (20 s), score 1.96

You can watch all five, with sound, on the demo page: https://ansygroup.github.io/autoclipper/

How the picker works

  1. Local speech to text (faster-whisper) gives word level timestamps.
  2. Every window of 20 to 45 seconds that starts and ends on a sentence boundary gets a score. The score rewards faster speech, hook words, numbers, questions, and sudden changes in loudness.
  3. The top non-overlapping windows win.
  4. ffmpeg cuts each one to 1080x1920, and the caption for the current word is drawn as it is spoken, in one of four caption styles.

No model picks the clips. It is a heuristic, which matters for the next section.

Honest limits

  • English speech only for now.
  • The picker is a heuristic. It finds lively, quotable passages, not the best narrative arc. Review clips before posting.
  • No face tracking. Each clip uses a blurred background fit or a center crop.
  • Only cut videos you have the rights to use.

Running it

pip install faster-whisper numpy python autoclipper.py talk.mp4 --clips 5 --out clips/ 

You need ffmpeg on your PATH. That is the whole setup. MIT license.

Links

If you run it on your own footage and the picker misses a moment it should have taken, tell me which one. That is the part I most want to improve.