ass_ms_from_timecodes
Convert a millisecond timestamp or time string into its frame number using loaded timecodes, reporting whether timecodes or the fps fallback was applied.
Instructions
The frame that contains ms according to the loaded timecodes file.
Mirror of :func:ass_frame_from_timecodes; method reports whether the
loaded timecodes or the fallback frame rate was used, and ms is the start
time of the resulting frame.
Args: ms: milliseconds (int/float) or a time string. doc_id: document id, only needed for the fps fallback.
Returns:
{"ms", "frame", "frame_exact", "frame_floor", "frame_ceil", "frame_start_ms", "method", "input", "input_kind"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | ||
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||