{"data":{"slug":"discovered-eead18a3a708722d291ef8299d8f30b0525b8c2a9e7fa796","title":"Captions And Chapters","summary":"Generate captions, chapter maps, and feature timestamps from the final edit of a video, ensuring alignment with the approved script and platform-specific formatting rules. Deliverables include SRT\/VTT files and YouTube chapter descriptions that comply with platform guidelines.","url":"https:\/\/skillshunter.net\/skills\/discovered-eead18a3a708722d291ef8299d8f30b0525b8c2a9e7fa796","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-eead18a3a708722d291ef8299d8f30b0525b8c2a9e7fa796","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-eead18a3a708722d291ef8299d8f30b0525b8c2a9e7fa796.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-eead18a3a708722d291ef8299d8f30b0525b8c2a9e7fa796\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Ensure the final audio is locked and the approved script is used for word spelling. Install faster-whisper for word timing and run the provided Python scripts to generate captions and chapters. Rebuild all timestamps after any change in video length.","instructions":"---\nname: captions-and-chapters\ndescription: Make captions, chapter maps and feature timestamps from the FINAL edit of a video, never from the draft - word timing from the final audio, words corrected to the approved script's screen spelling, cue length and reading speed, line breaks, safe zones for 16:9 and 9:16, burned-in captions versus SRT and WebVTT sidecar files, YouTube chapter rules (0:00 first, at least three, each 10 seconds or longer), and setting links that land inside the right chapter. Ships two scripts - word timings to SRT\/VTT, and chapters to YouTube description lines with the rules checked. Load it for any captions, subtitles, SRT, VTT, transcript, chapters, timestamps, YouTube description, \"add captions\", \"make chapters\" or \"the chapter link opens the wrong part\" job.\nmetadata:\n  license: AGPL-3.0-or-later\n  copyright: \"2026 DevTribe Labs\"\n  homepage: https:\/\/github.com\/DevDadTribe\/toolbox\n---\n\n# Captions and chapters\n\nCaptions and chapters are the last thing built and the first thing a viewer trusts. When they are\nmade from the draft, every cut after that moves the words: a caption shows a line the voice no\nlonger says, a chapter link opens the previous section, a burned-in cue covers the button being\nclicked. The fix is simple and strict: **build them from the final edit, then check them against\nthe final film.**\n\nThe examples use an invented product, **Acme Bookings**.\n\n| File | What it holds |\n|---|---|\n| `references\/captions.md` | word timing, spelling, cue rules, line breaks, safe zones, burned-in versus sidecar, SRT and VTT details |\n| `references\/chapters.md` | chapter maps from final frames, YouTube chapter rules, setting and feature timestamps, player data |\n| `scripts\/captions_from_words.py` | word timings (Whisper-style JSON) to SRT and\/or VTT with length, duration and reading-speed rules |\n| `scripts\/chapters_to_youtube.py` | chapter starts in frames to YouTube description lines and a WebVTT chapters file, rules checked |\n| `examples\/acme-words.json`, `examples\/acme-chapters.json` | small inputs to try both scripts |\n\n## The order\n\n1. **Lock the picture and the mix.** Captions and chapters come after the last cut. Any later\n   change in length means building them again.\n2. **Get word times from the final audio.** Run Whisper or faster-whisper with word timestamps on\n   the final mixed narration (or the narration stem laid on the final timeline). Not on the raw\n   take: edits moved every word.\n3. **Correct the words to the approved script.** Speech-to-text spells brands wrong. Captions use\n   the script's screen spelling, not its speech spelling and not the transcript's guess.\n4. **Build the cues** with `scripts\/captions_from_words.py`, then read them.\n5. **Build the chapter map** from measured final frames (`references\/chapters.md`), then\n   `scripts\/chapters_to_youtube.py` for the description lines.\n6. **Check against the film:** play each chapter link, look at a frame under every burned-in cue,\n   read the sidecar file in a real player.\n\n## Hard rules\n\n1. **Final edit only.** Never ship captions or chapter times from a draft or from the script's\n   planned timing.\n2. **One source of words.** The approved script, with screen spelling. The transcript gives the\n   times, not the spelling.\n3. **Clamp every cue end to the next cue's start.** Overlapping cues stack on screen at cuts.\n4. **Captions never cover what the voice is pointing at,** nor the presenter's face, nor the\n   platform's own buttons on 9:16.\n5. **Ship a sidecar file for anything with speech** (VTT for the web, SRT where asked). Burn\n   captions in as well for social and ads that autoplay muted.\n6. **A changed VTT does not fix a burned-in caption.** Re-render the picture.\n7. **Chapters start where their section starts,** on the first spoken word or the section intro,\n   and cover the whole film with no gaps.\n8. **Rebuild every timestamp after any change in length**: captions, chapters, setting links.\n9. **Compare times at frame precision.** Floating-point seconds once sent a chapter link to the\n   previous chapter (626.8333 rounded the wrong way).\n10. **Never caption an availability label** (\"beta\", \"coming soon\"). If the voice says it, the\n    film is wrong; see `video-brief-script-shots`.\n\n## Default numbers\n\n| Rule | 16:9 tutorial | 9:16 social or ad |\n|---|---|---|\n| Characters per line | up to 42 | up to about 26, or 2 to 4 words a cue |\n| Lines per cue | up to 2 | 1 (2 at most) |\n| Cue duration | 1 to 6 s | 0.5 to 2.5 s for word-group captions |\n| Reading speed | up to about 17 to 20 characters a second | the same, the pace of speech |\n| Text height | at least 30 px at 1080p | about 48 to 60 px at 1080 wide |\n| Where | lower third, off the click target | inside the platform's safe zone, clear of the bottom UI |\n\nThese are starting points. Check the platform's current safe-zone and caption guidance.\n\n## Quick commands\n\n```bash\npython3 -I scripts\/captions_from_words.py --help\npython3 -I scripts\/captions_from_words.py examples\/acme-words.json --format both --out \/tmp\/acme\npython3 -I scripts\/chapters_to_youtube.py --help\npython3 -I scripts\/chapters_to_youtube.py examples\/acme-chapters.json --vtt \/tmp\/acme-chapters.vtt\n\n# word times with faster-whisper (pip install faster-whisper)\npython3 -c \"from faster_whisper import WhisperModel as W; import json,sys; \\\ns,_=W('small.en').transcribe(sys.argv[1], word_timestamps=True); \\\nprint(json.dumps([{'word':w.word.strip(),'start':w.start,'end':w.end} for x in s for w in x.words]))\" final-mix.wav > words.json\n\n# burn a sidecar into the picture (re-render; a sidecar edit alone never changes burned pixels)\nffmpeg -i film.mp4 -vf \"subtitles=film.srt:force_style='FontSize=22,MarginV=60'\" -c:a copy film-captioned.mp4\n```\n\nOptional: if you have Remotion's own `remotion-captions` skill installed, use it to draw animated\nword captions from the same corrected word list. The rules here still apply.\n\n## Related skills\n\n`video-brief-script-shots` (the script and chapter list these build from), `narration-and-presenter`\n(where the words come from), `motion-design` (caption motion), `long-tutorial-pipeline` (long\nchaptered films), `review-and-publish` (player checks after upload), `anti-ai-slop-copy` (chapter\ntitles and descriptions).\n\n## Say what you checked\n\nName what you checked: which chapter links you played, which cues you looked at under the picture,\nwhich player loaded the sidecar. Write NOT VERIFIED, in those words, for the rest.\n","use_cases":["Generate captions from final audio with word timing","Create chapter maps for YouTube with compliance to platform rules","Export SRT\/VTT files for web and video platforms","Ensure captions align with approved script spelling","Validate chapter links and burned-in captions against the final video"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/DevDadTribe\/toolbox\/blob\/5f44c242b6e4997ebc34dec7202932c4aa6701f6\/skills\/captions-and-chapters\/SKILL.md","source_commit":"5f44c242b6e4997ebc34dec7202932c4aa6701f6","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:41:39.000000Z","updated_at":"2026-11-29T10:53:02.000000Z","seo_title":"Generate Captions, Chapters, and Timestamps from Final Video Edits","seo_description":"Create accurate captions, chapter maps, and timestamps from the final video edit using approved scripts and platform-specific formatting rules. Ships SRT\/VTT files and\u5408\u89c4\u7684","seo_keywords":["captions from final edit","chapter maps for YouTube","SRT\/VTT generation","approved script alignment","video timestamping","caption formatting rules","final audio processing"]}}