Tools /

Convert frame rate

Re-time subtitles made for one video frame rate to another (e.g. a 25 fps PAL release to 23.976 fps).

convert_framerate

Plan
Pro+
Usage
1 upload
Effect
Returns a new file

Parameters

ParameterTypeDescription
contentrequiredstringFull subtitle file contents as text (SRT, WebVTT, ASS/SSA, or the JSON produced by convert_subtitles).
filenameoptionalstringOriginal file name. The extension helps detect the format.
formatoptionalenumInput format. Detected from the file name or contents when omitted."srt" · "vtt" · "ass" · "ssa" · "json"
sourceRaterequiredenumFrame rate the subtitles were timed for."24" · "25" · "30" · "50" · "60" · "23.976" · "29.97-df" · "29.97-ndf" · "59.94-df" · "59.94-ndf"
targetRaterequiredenumFrame rate of the video they should match."24" · "25" · "30" · "50" · "60" · "23.976" · "29.97-df" · "29.97-ndf" · "59.94-df" · "59.94-ndf"
outputFormatoptionalenumOutput format. Defaults to the format of the (first) input."srt" · "vtt" · "ass" · "json"

Example

You ask your assistant:

“These subs drift out of sync — they were made for the 25 fps version. Convert to 23.976.”

It calls convert_framerate with:

arguments
{
  "filename": "film.srt",
  "content": "1\n00:00:01,000 --> 00:00:03,500\nHello there.\n",
  "sourceRate": "25",
  "targetRate": "23.976"
}

and gets back:

result
Converted 1,204 cues from 25 fps to 23.976 fps as SRT.