retime_subtitles
Fix subtitle timing. Use offset_seconds for a uniform shift (whole track early/late). Use ratio, or from_fps/to_fps, for progressive drift caused by a frame-rate mismatch. Pass exactly one of the three.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | Scale all timings by this factor (new = old x ratio). e.g. 1.0427 for a 25→23.976 fps fix. | |
| to_fps | No | The frame rate of the actual video (used with from_fps). | |
| content | Yes | The full subtitle file text. | |
| from_fps | No | The frame rate the subtitles were authored for (used with to_fps). | |
| offset_seconds | No | Shift every cue by this many seconds. Negative = earlier. e.g. -2.5 |