# 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.

- **Space:** video-editing-public (https://github.com/Tech-Realm/space-video-editing-public/tree/main/captions)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** GROQ_API_KEY
- **Tools:** python3
- **Routes:** whisper-local, groq-whisper; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use video-editing-public/captions` or MCP `get_pack video-editing-public/captions`
- **Files:** CHANGELOG.md, code/captions.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/cuts.txt, outcome/fixtures/words.json, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (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

1. Transcribe with word timings (Groq whisper-large-v3-turbo or local faster-whisper small).
2. Group 2-5 words (portrait) / up to 7 (landscape), split at phrase boundaries, never shrink text to fit.
3. Make it cut-aware: `code/captions.py words.json cuts.txt out.srt` splits at picture cuts and merges blocks <0.5 s.
4. Style: one font/size for the whole video (e.g. Poppins SemiBold 50-54 px white, 4 px black outline + soft shadow), sentence case.
5. Position inside the Meta safe zone (14% top / 35% bottom / 6% sides: x 65-1015, y 269-1248), clear of faces.
6. Run Whisper on the final mix to prove every line survived; note expected mishearings.
7. 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



---

Canonical URL: https://logicpacks.io/packs/video-editing-public/captions

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
