Remove duplicate caption builders
Objective
Ensure only one canonical caption builder exists in Remotion.
Why this matters
Caption divergence causes subtle render mismatches across overlays.
Parallelization metadata
Track
remotion
Depends on
Safe to run in parallel with
Merge risk
Files in scope
Primary:
Likely touch:
HookOverlay.tsx
CaptionOverlay.tsx
Required implementation
1. Remove duplicates
Ensure all caption logic imports shared utility.
2. Normalize exports
Single API surface.
Constraints
Acceptance criteria
Functional
Regression checks
Verification commands
grep -r "buildCaptions" remotion/
Expected result:
- only one implementation exists
Explicitly out of scope
Suggested branch
refactor/s7-caption-cleanup
Suggested commit slug
phase-5-step-6-captions-cleanup
Remove duplicate caption builders
Objective
Ensure only one canonical caption builder exists in Remotion.
Why this matters
Caption divergence causes subtle render mismatches across overlays.
Parallelization metadata
Track
remotionDepends on
Safe to run in parallel with
Merge risk
Files in scope
Primary:
remotion/lib/captions.tsLikely touch:
HookOverlay.tsxCaptionOverlay.tsxRequired implementation
1. Remove duplicates
Ensure all caption logic imports shared utility.
2. Normalize exports
Single API surface.
Constraints
Acceptance criteria
Functional
Regression checks
Verification commands
grep -r "buildCaptions" remotion/Expected result:
Explicitly out of scope
Suggested branch
refactor/s7-caption-cleanupSuggested commit slug
phase-5-step-6-captions-cleanup