Calculate frame rate

The Transcoder API calculates the frame rate for the output video given the frame rate of the input video and the target frame rate you specify.

The target video frame rate:

  • Must always be less than or equal to 120 frames per second (FPS)
  • Defaults to the input frame rate if it is larger than the input frame rate

The API generates an output frame rate that is divisible by the input frame rate, and smaller or equal to the target frame rate.

The following table shows the computed video frame rate given the input frame rate (in the first column) and the target frame rate (in subsequent columns). All frame rates are given in FPS.

Input (30) (60) (25) (50)
240 Fail Fail Fail Fail
120 30 60 20 30
100 25 50 20 30
50 25 50 20 30
60 30 60 20 30
59.94 29.97 59.94 20 30
48 24 48 20 30
30 30 30 20 30
25 25 25 20 30
24 24 24 20 30
23.976 23.976 23.976 20 30
15 15 15 20 30
12 12 12 20 30
10 10 10 20 30