ass_read_timecodes
Extract frame timings and FPS changes from Aegisub timecodes files (v1/v2) and store them on the workspace for subtitle conversion.
Instructions
Parse an Aegisub timecodes file (v1 or v2) and store it on the workspace.
Args:
path: path to the .txt/.timecodes file.
Returns:
{"path", "version", "default_fps", "fps_changes", "times_ms", "frame_count", "duration_ms", "segments": [{"start_frame", "end_frame", "start_ms", "end_ms", "fps"}]}. v1 files have default_fps and
fps_changes ([{"start_frame", "end_frame", "fps"}]); v2 files
have the per-frame times_ms list. The result is also kept on
workspace.timecodes so the conversion tools can honour it.
Malformed input raises a ToolError naming the offending 1-based line number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||