← All projects
Project record1 mention
Originally shared on Hacker News

Transcription-based video editing script

Transcription-based video editing script written as a couple hundred lines of Python wrapping Whisper and FFmpeg. A first pass produces a timestamped transcript and a plain text transcript for editing; after the words are edited into any order, a second pass reassembles the video. It also speeds up silences 4x within retained sequences and can burn in captions when silence removal makes the audio choppy.

Last shared
01 / The problem

What it addresses

A co-worker had difficulty editing a work demo, where editing out silences had previously required manual work.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Transcription-based video editing script

    Transcription-based video editing script written as a couple hundred lines of Python wrapping Whisper and FFmpeg. A first pass produces a timestamped transcript and a plain text transcript for editing; after the words are edited into any order, a second pass reassembles the video. It also speeds up silences 4x within retained sequences and can burn in captions when silence removal makes the audio choppy.

    Problem: A co-worker had difficulty editing a work demo, where editing out silences had previously required manual work.

    Posted by @bazzargh · Original source ↗

    Source text · @bazzargh · · Source ↗

    So a couple of hours later I'd written a script that does transcription based editing: on the first pass it grabs a timestamped transcript and a plain text transcript for editing; you edit the words into any order you like and a second pass reassembles the video (it's just a couple of hundred lines of python wrapping whisper and ffmpeg).