docs/features/beautify-time-codes.md
Snap subtitle in- and out-cues to shot changes, frame boundaries, and minimum-gap / duration rules in one pass, using a fully configurable profile.
The window shows the loaded subtitle in two stacked waveform visualizers:
Above the visualizers a stats line summarises the run:
Subtitles: N · Changed: M · Frame rate: 25 · Shot changes: K
Below the visualizers, the change navigator lets you step through every cue the beautify pass moved:
#15 Start: 00:01:23,456 → 00:01:23,400 (−56 ms / −1.4 f) End: …Start: snapped to shot changeEnd: snapped to frameStart: min. gap enforced — start landed exactly on previous end + min. gap.End: min. gap enforced — end landed exactly on next start − min. gap.Duration: min. duration enforced / max. duration enforced — duration was clamped to the Subtitle min/max display milliseconds general setting.— when no reason is detected (e.g. chaining / connected-subtitle adjustments).Press OK to apply the beautified cues to the subtitle, or Cancel to discard.
The profile editor controls exactly how cues are moved. It is independent of which subtitle is loaded, and persists across Subtitle Edit restarts via the main Settings.json.
Load a known-good configuration from the Load preset menu at the bottom of the dialog:
Presets overwrite all profile values. Use them as a starting point.
For a paragraph in-cue (start) or out-cue (end), the profile defines a snap window around the nearest shot change:
The preview to the right of each section shows the current setup: gray gap area, red and green zones around the center line (the shot change), and the two subtitle blocks pressed up against the gap.
When two consecutive subtitles are connected (separated by less than Treat as connected if gap smaller than milliseconds), the beautifier preserves their relationship instead of treating each cue independently. The same zone logic applies, but with separate gap values depending on whether the in cue or out cue is closer to the shot change. Use the inner tab control to switch between the two cases.
When two consecutive subtitles almost touch but a shot change sits between them, the beautifier can chain them — extending one to meet the other — based on the General, In cue on shot change, and Out cue on shot change sub-tabs.
Each sub-tab offers:
The profile's In cues / Out cues red zones also drive the snap distance when you drag a paragraph edge in the main waveform:
Toggle the whole behavior with Snap to shot changes (hold Shift to override) in Options → Settings → Waveform.