ContentCase study 05 / 20

Video Studio

Upload raw footage. It cuts the dead air and bad takes, burns in word-by-word captions, plans zooms and b-roll, and hands a finished reel to Content Factory to post.

Role

Sole designer and engineer

Status

● Running in production

Models

Local faster-whisper · Claude over the transcript · ffmpeg for the rest

Stack

Next.js + React · Claude Agent SDK · faster-whisper · ffmpeg · SQLite · Worker + sidecar

Auto-cut
captions + b-roll, then auto-posts
Live
▶ Watch the demo

The short version

  • An edit-decision file is the contract between every stage, so any decision can be changed and re-rendered without starting again.
  • The model edits text, not video: it works on a word-indexed transcript, and code turns its choices into frame-accurate cuts.
  • What used to take an evening per reel now takes a few minutes, with every decision reviewable.

01Why I built it

Short-form video is the channel that works for the brands I build for, and editing was the bottleneck. Cutting silences, removing false starts, captioning word by word and adding zooms took an evening per reel.

Most of that work is mechanical. The part that needs judgement (which take is the good one, where the emphasis is) is a language problem, and language is what models are good at.

02How it works

  1. IngestNormalise any input to 1080×1920 vertical.
  2. TranscribeA local faster-whisper sidecar returns word-level timestamps.
  3. Analyseffmpeg silencedetect finds dead air. A separate Claude pass over the transcript finds fillers, false starts and repeated takes.
  4. PlanCaptions in one of four styles, face-safe punch-in zooms on emphasised words, emoji pops, short call-outs, a colour grade, and up to three b-roll shots planned by transcript span.
  5. ReviewA storyboard with thumbnails and effect badges. Every decision can be edited in plain language, with a cheap preview of only the changed window.
  6. Render and QAffmpeg renders with burned-in ASS captions. A self-QA pass snaps cuts that land mid-word, removes flicker and trims trailing silence.
  7. Hand offAutopilot saves the reel into Content Factory's queue and schedules it for TikTok and Instagram.

03Model choices, and why

Speech to text

faster-whisper, running locally

Word-level timing is essential for captions and cuts. Running it as a local sidecar is free per minute of footage and keeps raw footage on my server.

Which takes to keep, where the emphasis is, what b-roll to plan

Claude via the Agent SDK

These are judgement calls about language and delivery. The model reads the transcript, which is a few kilobytes, instead of the video, which is gigabytes.

Editing theme from a reference reel

Claude, studying frames and measured cut pace

Turns “make it look like this” into explicit colours, fonts, caption style and pacing rules that steer every other pass.

Silence detection, cutting, captions, grading

No model: ffmpeg

Dead air is a signal-processing problem with an exact answer. Spending tokens on it would be slower and less accurate.

04Context: what the model sees

  • A word-indexed transcript. The model refers to words by index rather than rewriting timestamps, and the edit spec re-times everything deterministically. Revisions never drift out of sync.
  • Brand and theme rules. Colours, fonts, caption style and editing rules from the brand (or a reference reel) are passed into each pass.
  • Not the video. Frames are only looked at when the job actually needs vision, such as learning a theme from a reference.

05Token and cost discipline

  • Deterministic work goes to ffmpeg, not the model. The model only sees what needs judgement.
  • Text instead of video keeps each call small.
  • Edits preview only the changed window, so a tweak doesn't cost a full re-render.
  • Transcription is local, so there's no per-minute speech-to-text bill.

06Performance

  • Three supervised processes: the web app, a job worker, and the whisper sidecar, so long renders never block the UI.
  • Face-safe zoom caps the zoom level and centres the crop on a detected face, so punch-ins don't cut off the speaker.
  • Every render writes audit artefacts: cue sheet, cut list, QA report and project notes.
  • The same worker also renders Motion Graphics reels, so there's one media pipeline to run, not two.

07Trade-offs I made

Chose

An edit-decision file between stages

Over

One end-to-end model call

More plumbing, but every stage can be inspected, edited and re-run on its own.

Chose

Local speech-to-text

Over

A cloud transcription API

A sidecar to keep running, in exchange for zero per-minute cost and private footage.

Chose

Assisted b-roll

Over

Fully automatic b-roll

The worker has no direct access to the video generator, so it writes an instruction for an interactive session to generate the clips and post them back. Honest, and safer.

Chose

Hard cuts

Over

Transitions

Short-form rewards pace. Transitions are on the list, not in the product.

08Guardrails

  • Every decision (cuts, zoom, captions, emoji, call-outs, grade, b-roll, sound) is editable before render.
  • Autopilot is optional. The default path is storyboard, then review, then render.

09What I'd do next

  • Cross-cut transitions and a cover-image generator.
  • A/B testing beyond the current three-way hook chooser.

10What this shows

Applied AI engineering

Splitting a problem between models and deterministic code, and designing a contract (the EDL) so the model's output is checkable.

Product

Took a painful evening-long job to minutes without taking the creator out of the loop.

Solutions

A multi-process media pipeline with a speech sidecar, a queue, and a handoff into publishing.

Across the fleet: every build runs on one self-hosted Linux server, binds to localhost and is reached only over a private Tailscale network. AI inference runs on a Claude subscription through one in-house router (part of Sentry) rather than per-token API keys, with open-weight models on Ollama as the local layer: on the server, and on a 64 GB MacBook Pro shared over Tailscale for heavier local work. Everything is backed up to GitHub and a separate cold disk, and nothing reaches another person without a human tap.

Hiring for applied AI, product or solutions work? I'd like to hear about it.