Packs / video-editing-public
captions
Captions that pass client review: word-timed, cut-aware, one position/style/size, 2-5 words per line, inside the 9:16 safe zone; SRT from Whisper word timings.
Install
logicpacks pack use video-editing-public/captionsget_pack video-editing-public/captionsThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
- GROQ_API_KEY
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
whisper-localgroq-whisper - Checks: 1 in
outcome/checks.yaml - Code:
captions.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Captions that pass client review: word-timed, cut-aware, one position/style/size, 2-5 words per line, inside the 9:16 safe zone; SRT from Whisper word timings.
Goal
Deliver captions that are word-for-word, never cross a picture cut, never flash (<0.5 s), and sit in one fixed safe position.
Steps
- Transcribe with word timings (Groq whisper-large-v3-turbo or local faster-whisper small).
- Group 2-5 words (portrait) / up to 7 (landscape), split at phrase boundaries, never shrink text to fit.
- Make it cut-aware:
code/captions.py words.json cuts.txt out.srtsplits at picture cuts and merges blocks <0.5 s. - Style: one font/size for the whole video (e.g. Poppins SemiBold 50-54 px white, 4 px black outline + soft shadow), sentence case.
- Position inside the Meta safe zone (14% top / 35% bottom / 6% sides: x 65-1015, y 269-1248), clear of faces.
- Run Whisper on the final mix to prove every line survived; note expected mishearings.
- One text system on screen at a time; follow the client's latest written feedback.
Edge cases
- Active-word colour is optional; some clients want plain.
- Urdu Nastaliq/Arabic shaping must be proofread by a native speaker.
- Homebrew ffmpeg may lack drawtext/libass: burn captions in the editor (Tesseract/Resolve) instead.
Don'ts
- Don't change caption size mid-video.
- Don't repeat the same words as a title and a caption.
Keys
Env NAMES only (values live in the lp vault; run through lp run): GROQ_API_KEY