Tutorial · Python · ~6 min

How to Convert 24fps to 60fps in Python

No CUDA. No GPU. No FFmpeg frame pipeline. About five minutes, using our sample footage.

PythonFrame rate60fps

Step 1 — Sign up and get your API key

  • Sign up (free tier included)
  • Copy the key from the dashboard
  • pip install mlslabs

Step 2 — Pick sample footage

SampleSourcePreset idea
cinema-24fps.mp424fps film scenecinematic
soccer-30fps.mp430fps broadcasthigh_motion
anime-12fps.mp412fps animeanime
game-60fps.mp4already 60fpsreference

Step 3 — Submit an interpolation job

ParameterOptionsNotes
target_fps60 / 120Or multiplier for non-standard targets
motion_presetcinematic / high_motion / animeArtistic control
output_formatmp4 / movContainer
Python
import mlslabs

client = mlslabs.Client("YOUR_API_KEY")
job = client.frame_interpolation.submit(
    input_url="s3://bucket/cinema-24fps.mp4",
    output_url="s3://bucket/cinema-60fps.mp4",
    target_fps=60,
    motion_preset="cinematic",   # cinematic | high_motion | anime
)
print(job.job_id)

Step 4 — Poll for the result

Python
job.wait()
print(job.status)  # done | failed

Step 5 — Download and verify

Bash
curl -L -o out-60fps.mp4 <output_url>
ffprobe -show_streams out-60fps.mp4 | grep -E "r_frame_rate|avg_frame_rate"
# => 60/1

Next: batch processing

Whole libraries convert the same way: one batch queue, per-file webhooks, automatic retries.