ass_frame_from_timecodes
Convert a frame number to its start time in milliseconds and seconds using the loaded timecodes file, falling back to the document frame rate when none is set.
Instructions
The start time of frame according to the loaded timecodes file.
Honours workspace.timecodes (written by :func:ass_read_timecodes) and
falls back to the document/workspace frame rate when no file is loaded;
method says which of the two was used. Both coordinates are returned so
the pair is unambiguous.
Args: frame: frame number. doc_id: document id, only needed for the fps fallback.
Returns:
{"frame", "ms", "seconds", "method", "input", "input_kind", "exact_ms"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | ||
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||