Convert between seconds, frames, ticks and timecode
convert_timeConvert time values between seconds, frames, ticks, and timecode at a specified frame rate, with NTSC and drop-frame support. Useful for arithmetic conversions that don't need a Premiere Pro project.
Instructions
Convert a time value between seconds, frames, ticks (254016000000 per second, Premiere's internal unit) and timecode at a given frame rate. Pure arithmetic: Premiere Pro is not called and no project is needed, so it ignores any sequence start time; use sequence_time_to_timecode or sequence_timecode_to_time for a sequence's own ruler. 23.976, 29.97 and 59.94 are treated as the exact NTSC rates (n*1000/1001). Drop-frame timecode (29.97 and 59.94 only) is written 00;00;00;00 and non-drop 00:00:00:00. Returns all four representations; frames is the nearest frame (0-based) and frame_aligned says whether the input fell exactly on it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"value": "<value>",
"from": "<from>",
"fps": "<fps>"
},
"name": "convert_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | Yes | Frame rate in frames per second, above 0 and up to 1000, e.g. 23.976, 24, 25, 29.97, 30, 50, 59.94, 60. | |
| from | Yes | Unit of value. | |
| value | Yes | The value to convert: a number for seconds or frames, a number or digit string for ticks, a string such as "00:01:00:00" for timecode. | |
| drop_frame | No | Use drop-frame timecode (29.97 / 59.94 fps only). Default: true when a timecode value is written with ";", otherwise false. |