Media
Subtitle Frame-Rate Retime Converter
Rescale subtitle timings for frame-rate changes: PAL speedup presets (23.976↔25), custom fps pairs, a direct linear factor, or two-point linear calibration t′ = a·t + b.
text· Text resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/subtitle-framerate-retime-converter' \
-H 'Content-Type: application/json' \
-d '{"subtitleText":"1\n00:00:10,000 --> 00:00:12,000\nFirst line\n\n2\n00:01:00,000 --> 00:01:02,000\nLast line","retimeMode":"preset","fpsPreset":"23.976-to-25","sourceFps":25,"targetFps":23.976,"linearFactor":1,"point1NowMs":0,"point1TargetMs":0,"point2NowMs":0,"point2TargetMs":0,"outputFormat":"srt"}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/subtitle-framerate-retime-converterParameters
| Name | Type | Required | Description |
|---|---|---|---|
| subtitleText | textarea | Yes | — |
| retimeMode | select | No | — |
| fpsPreset | select | No | — |
| sourceFps | number | No | — |
| targetFps | number | No | — |
| linearFactor |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-subtitle-framerate-retime-converter": {
"name": "subtitle-framerate-retime-converter",
"description": "Rescale subtitle timings for frame-rate changes: PAL speedup presets (23.976↔25), custom fps pairs, a direct linear factor, or two-point linear calibration t′ = a·t + b.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=subtitle-framerate-retime-converter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "subtitle-framerate-retime-converter",
"arguments": {
"subtitleText": "1\n00:00:10,000 --> 00:00:12,000\nFirst line\n\n2\n00:01:00,000 --> 00:01:02,000\nLast line",
"retimeMode": "preset",
"fpsPreset": "23.976-to-25",
"sourceFps": 25,
"targetFps": 23.976,
"linearFactor": 1,
"point1NowMs": 0,
"point1TargetMs": 0,
"point2NowMs": 0,
"point2TargetMs": 0,
"outputFormat": "srt"
}
}
}