TL;DR We'll auto-generate chapters for a video. The trick: transcribe with timestamps, let the LLM choose chapter boundaries by segment index (never raw time), then map indices back to real timestamps in code. That sidesteps the one thing LLMs are reliably bad at: echoing exact timecodes.
Source: [Dev.to](https://dev.to/masonwritescode/auto-generate-video-chapters-with-whisper-an-llm-without-hallucinated-timestamps-1oej)