Validate SRT or WebVTT subtitles
validate_srtChecks pasted SRT or WebVTT subtitle text and lists problems per subtitle: overlapping or out-of-order timings, gaps shorter than the minimum frame gap, reading speed (characters per second), line length, line count, too short or too long durations, and broken characters from a wrong encoding (mojibake such as 'é' or '’', with the probable correct text). Optionally returns a corrected SRT. The text is only processed for this response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Video frame rate used for the minimum gap. Default 25. | |
| preset | No | Rule set: 'netflix' (42 chars/line, 2 lines, 17-20 CPS, 0.83-7 s; default), 'vertical' (short-form vertical video: 32 chars/line, 2 lines, 17-20 CPS, 1-5 s) or 'children' (42 chars/line, 13-17 CPS). | |
| srt_text | Yes | Full text of the .srt or .vtt file. | |
| min_gap_frames | No | Minimum gap between subtitles in frames. Default 2. | |
| include_fixed_srt | No | Also return a corrected SRT (encoding fixed, overlaps trimmed, long single lines split, short subtitles extended). Default false. |