ffmpeg commands
Timing and slow motion
The scripts in this folder change how time plays back: most stretch a clip into slow motion, and a couple change the frame rate without changing the speed. They work in one of two ways: either by playing every frame of high-frame-rate footage at 29.97 fps, or by using ffmpeg's minterpolate filter to synthesize in-between frames. These are for when you need slow motion from either kind of footage, want to compare interpolation settings to reduce artifacts, or need to turn odd or variable frame rates into a steady 29.97 fps.
Slow motion by conforming high-frame-rate footage to 29.97 fps (ProRes)
conform-to-2997-prores.sh
Plays every frame of a high-frame-rate clip at 29.97 fps instead of dropping frames, which is how cameras make "true" slow motion: 120 fps footage becomes 4× slower, 60 fps becomes 2× slower. No frames are invented (compare minterpolate-slowmo-prores.sh). Output is ProRes 422 for editing.
Extreme 12.5× slow motion with motion interpolation (butterflow replacement)
extreme-slowmo-12x.sh
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.
Compare minterpolate's motion-estimation settings side by side
minterpolate-mode-comparison.sh
Renders the same 15 s at 3× slow motion (90 fps played at 29.97) with eight different minterpolate settings, one file per setting, so you can pick the one with the fewest artifacts for your footage.
Convert to a steady 29.97 fps with motion interpolation (no speed change)
minterpolate-normalize-fps.sh
For footage with an odd or variable frame rate (screen recordings, web video, phone clips): minterpolate synthesizes frames at exactly 29.97 fps instead of dropping or duplicating them, so motion stays smooth. Also crops a 640×480 window from the center of a larger frame.
Raise footage to 120 fps with interpolated frames, at normal speed
minterpolate-raise-fps.sh
Synthesizes in-between frames so 30 fps footage plays back as smooth 120 fps motion, the "smooth motion" TV effect. Unlike the slow-motion examples there's no setpts, so the clip keeps its original duration. Useful as a source for high-frame-rate edits, or for comparing raw interpolation quality.
4× slow motion with motion-interpolated frames (ProRes)
minterpolate-slowmo-prores.sh
Generates in-between frames with motion estimation to raise ~30 fps footage to 120 fps, then plays those frames at 29.97 fps: a smooth 4× slowdown from normal footage. Slow to render; motion artifacts (warping around fast or crossing objects) are part of the look.
4× interpolated slow motion with matching slowed audio, square 1080×1080
minterpolate-slowmo-with-audio.sh
Interpolates video to 4× slow motion and stretches the audio by the same amount so they stay in sync, then fills a 1080×1080 square for social feeds. Scene-change detection is off, so cuts morph into each other instead of jumping, which is the dreamy look these were made for.
Source: lucidbeaming/ffmpeg-utilities/timing at v1.0.1