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"}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ass_ms_from_timecodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | ||
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||