← Back to Home

How to Build Highlight Windows from Audio Timelines

Updated March 5, 2026
algorithmtimelinehighlightsvideoframe math

Highlight Window Resolution Algorithm

Convert per-slide audio durations into deterministic frame windows, then map highlight slide ranges onto that timeline.

Step 1: Build Slide Timeline

Use fps=30 and add one second padding per slide:

audioFrames = ceil((audioDurationMs / 1000) * fps)
slideDurationFrames = audioFrames + fps

Each timeline entry stores:

Step 2: Normalize Highlight Ranges

Allowed shapes:

Reject:

Step 3: Resolve or Drop

For each highlight:

Why This Pattern