Long-form editor
Everything is code, so every change is repeatable: a note like "music's too loud" becomes one number in one script.
Folder layout
<video>/raw/ IMG_xxxx.MOV takes (+ screen recordings)
<video>/editor/ these scripts (copy from scripts/)
<video>/final/ output + upload text
Run everything from editor/. Needs ffmpeg, Python (numpy scipy soundfile pillow faster-whisper), Node + playwright (npm i playwright && npx playwright install chromium).
Steps
- Check the footage first with the
video-quality-checkskill (HDR? full range? dim?). FixTM/GRinbuild.pyto match. - Transcribe. Extract 16 kHz mono to
tr/IMG_x.wavand 48 kHz stereo toa48/IMG_x.wav, thenpy tr.py IMG_x ...(Whisper with word timestamps). - Find the story. Read every transcript. Write
segs.py:(section, take, first-word start, START of last word[, hard out[, hard in]]). Chapter slots are('CARDn', None, seconds).- Hook first: the result, then the promise. Cut stammers and repeated phrases; prefer the clean re-say.
- Re-transcribe a 5–10 s clip whenever a timing looks wrong. Whisper merges repeats and invents words in silence.
py edl.py→plan.json. Cuts snap to the quietest 10 ms near word edges, and pauses over 0.6 s shrink to 0.3 s.py words.py→ word times on the output timeline (g/words.js).py build.py→ graded, range-converted, punch-in A-roll (aroll.mkv). Set the face position per take inFACEso zooms stay centred.py voice.py→voice.wav(crossfaded joins, EQ, de-ess, gentle compression, ~-14.5 LUFS).- QA the cut: re-transcribe
voice.wavand read it start to finish. Fixsegs.pyand repeat 4–8 until it reads clean. - Graphics: write
g/_content.js(seeexample_content.js), assemblepart2.js = _infra.js + _content.js + _tail.js, thennode check.mjs.block(section, 'start phrase', 'end phrase', html, {side}). Children withdata-at="phrase"reveal on that word.- One graphic at a time, opposite side from the face, never over it. Render sample frames and look at them before the full render.
py music.py→ original score + sound effects timed to the sections and graphics (no licensed music needed). Thenpy mix.py→ music ~20 dB under the voice, oversampled true-peak limiter.- Render graphics: in
g/, runnode render.mjs <from> <to>in 3–4 parallel chunks. py final.py→ one composite pass, CRF 14 slow, AAC 320k.
Taste rules
- One focal point on screen. No subtitles top and bottom at the same time.
- Graphics say less than the voice: 2–4 words big, one small line under.
- Never put a number on screen that wasn't said or verified.
- Chapter cards between steps; a short end card.