subtitle_info
Inspect an SRT, VTT, ASS, or SSA subtitle file to detect its format, encoding, line endings, cue count, timing gaps, overlaps, reading speed, and cue-specific problems before repair or conversion.
Instructions
Inspect a subtitle file: format, detected encoding, line endings, cue count, time span, overlaps, gaps, longest line, reading speed (characters per second: min/mean/median/p95/max) and a list of problems with the cue numbers affected. Read-only. Run this first.
The encoding is detected (UTF-8/16/32 by byte order mark or structure; Turkish cp1254,
Western cp1252 and Central European iso-8859-2 by letter evidence) and the reason and
confidence are reported. If the text looks garbled, pass the right encoding and rerun.
Args: path: .srt, .vtt, .ass or .ssa file. encoding: Python codec name to force (for example 'cp1254'); default is auto-detect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| encoding | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |