Reproduces the original butterflow workflow (speed 0.08, i.e. 12.5× slower) with ffmpeg alone. butterflow, an OpenCL optical-flow tool, is no longer available. For a 30 fps source, interpolate to 30 × 12.5 = 375 fps, then play those frames at 30 fps. The higher-quality motion options matter at this stretch, because most frames on screen are synthesized.
For another factor or source rate: fps = source fps ÷ speed. Expect long render times: a 10 s clip becomes 125 s of mostly synthesized frames.
Also in notes/commands2.txt: another butterflow run (spd=0.08, --poly-s 1.8 --poly-n 7 -ff gaussian -r 29.97), tuning its optical-flow smoothing. The minterpolate settings here play the same role.
The command
ffmpeg -i input.mp4 \
-vf "minterpolate=fps=375:mi_mode=mci:mc_mode=aobmc:me_mode=bidir:vsbmc=1,setpts=N/(30*TB)" \
-r 30 \
-an \
-c:v libx264 -crf 18 -preset veryfast -pix_fmt yuv420p \
output.mp4 What each part does
minterpolate=fps=375 synthesize frames up to 375 fps
:mi_mode=mci motion-compensated interpolation
:mc_mode=aobmc overlapped blocks, smoother edges
:me_mode=bidir look both forward and back for motion
:vsbmc=1 variable-size blocks for finer detail
setpts=N/(30*TB) play every frame at 30 fps → 375/30 = 12.5×
-r 30 output at 30 fps
-an no audio
-c:v libx264 -crf 18 -preset veryfast -pix_fmt yuv420p When to use it
Use this when you need a dramatic 12.5× slowdown of ordinary 30 fps footage and have no high-frame-rate source to work from. It replaces the old butterflow workflow with ffmpeg alone; the header explains each flag. Most frames on screen are synthesized, so it suits smooth, steady motion better than fast or chaotic action. Expect long renders: a 10 s clip becomes 125 s of output.
Skip it if you need sound, because -an drops the audio. For that case, look at minterpolate-slowmo-with-audio.sh.
To use a different factor or source rate, set fps to the source fps ÷ speed. Then replace both 30s, in setpts and -r, with the source rate. For example, a 24 fps source at 12.5× needs fps=300, setpts=N/(24*TB) and -r 24.
If the output runs longer or shorter than 12.5× the input, check that the source really is 30 fps. Warping or smearing around moving edges comes from the interpolation guessing. Clips with simpler motion hold up better.
Notes
- Source
- ffmpeg-utilities/butter.sh (identical to stretch.sh): butterflow -s a=0,b=end,spd=0.08 --poly-s 2 -ff box -l -v
- Changed
- rewritten for ffmpeg's minterpolate, since butterflow is no longer available