Yes, there are video frame interpolation algorithms that allow generating frames at arbitrary time points between existing frames. This means you can convert, for example, 24fps to 30fps, 16fps to 24fps, or any other custom frame rate, not just simple 2x slow motion.
How it works
Most modern frame interpolation algorithms are based on optical flow or deep learning. They estimate the motion between two frames and can synthesize an intermediate frame at any fractional time point between them.
Key Concepts
- t parameter: When interpolating between Frame A and Frame B, you can specify a time parameter
t (where t=0 is Frame A, t=1 is Frame B, and any value in between is an intermediate frame).
- Arbitrary t: Good algorithms let you pick any
t (e.g., t=0.25, t=0.5, t=0.75), so you can generate as many in-between frames as you need for your target frame rate.
Popular Algorithms and Tools
1. RIFE (Real-Time Intermediate Flow Estimation)
- Deep learning-based.
- Allows arbitrary interpolation: you can specify the exact time offset for the intermediate frame.
- Widely used in tools like Flowframes and SVFI.
- Example: To go from 24fps to 30fps, you can calculate the required
t values for each new frame.
2. DAIN (Depth-Aware Video Frame Interpolation)
- Also deep learning-based.
- Supports arbitrary time steps between frames.
3. Butterflow
- Open-source tool that uses optical flow (and optionally RIFE).
- Lets you specify the output frame rate, and it will generate the necessary intermediate frames at the correct time points.
- Butterflow GitHub
4. SVP (SmoothVideo Project)
- Popular for real-time frame interpolation for video playback.
- Lets you set any target frame rate.
How to Use for Arbitrary Frame Rates
Suppose you want to convert 24fps to 30fps:
- Original frame interval: 1/24 ≈ 0.04167 seconds.
- Target frame interval: 1/30 ≈ 0.03333 seconds.
- For each new frame, calculate its position between the original frames, and use the interpolation algorithm to generate it at the correct
t.
Most modern tools handle this automatically: you just specify the input and output frame rates.
Summary Table
| Algorithm/Tool | Arbitrary t (time) | Deep Learning | Open Source | Notes |
|---|
| RIFE | Yes | Yes | Yes | Fast, accurate |
| DAIN | Yes | Yes | Yes | Slower, more complex |
| Butterflow | Yes | Optional | Yes | CLI tool, easy to use |
| SVP | Yes | No/Yes | No | Real-time playback |
In Practice
- For custom frame rates, use tools like Flowframes, Butterflow, or SVP.
- Specify your desired output frame rate; the tool will handle the rest.
In summary:
Yes, modern frame interpolation algorithms and tools allow you to generate frames at arbitrary points between existing frames, enabling conversion between any two frame rates, not just multiples.
If you want recommendations for specific workflows or scripts, let me know your platform (Windows, Mac, Linux) and whether you prefer GUI or command-line tools!