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.
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
| Sample | Source | Preset idea |
|---|---|---|
| cinema-24fps.mp4 | 24fps film scene | cinematic |
| soccer-30fps.mp4 | 30fps broadcast | high_motion |
| anime-12fps.mp4 | 12fps anime | anime |
| game-60fps.mp4 | already 60fps | reference |
Step 3 — Submit an interpolation job
| Parameter | Options | Notes |
|---|---|---|
| target_fps | 60 / 120 | Or multiplier for non-standard targets |
| motion_preset | cinematic / high_motion / anime | Artistic control |
| output_format | mp4 / mov | Container |
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 | failedStep 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/1Next: batch processing
Whole libraries convert the same way: one batch queue, per-file webhooks, automatic retries.
Keep exploring