Skip to content
HALOWERK

Tonwerk

subtitle timebase convert

Return millisecond subtitle intervals from supplied frame indices and a rational frame rate. Supplied data only.

POST https://ton.halowerk.com/v1/subtitle-timebase-convert

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
framesarrayYes
fps_numintegerYes
fps_denintegerYes
offset_msnumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "frames": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "first": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000000
          },
          "last": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000000
          }
        },
        "required": [
          "first",
          "last"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 1
    },
    "fps_num": {
      "type": "integer",
      "minimum": 1,
      "maximum": 120000
    },
    "fps_den": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1001
    },
    "offset_ms": {
      "type": "number",
      "minimum": -1000000,
      "maximum": 1000000
    }
  },
  "required": [
    "frames",
    "fps_num",
    "fps_den",
    "offset_ms"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "frames": [
    {
      "first": 0,
      "last": 24
    }
  ],
  "fps_num": 24000,
  "fps_den": 1001,
  "offset_ms": 0
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’