Slow down video to 0.5x with setpts and atempo (slower motion, audio preserved)
Slow motion: 0.5x slow makes the output twice as long as the source. Same mechanism as 2x fast: setpts slows the video by doubling the timestamps, and atempo=0.5 halves the audio speed without pitch shift.
The command
ffmpeg -i input.mp4 -vf "setpts=2.0*PTS" -filter:a "atempo=0.5" output.mp4What it does
2.0*PTS doubles every presentation timestamp: a frame at 1s becomes the frame at 2s, the frame at 2s becomes 4s. The output is double the source duration. atempo=0.5 halves audio speed using a phase vocoder; a person speaking at half speed still sounds like them, just slower.
When to use it
For slow-motion highlights, sports analysis, or any time you want to stretch a short event into something watchable. Slow motion is also useful for product demos, where the action is fast and the viewer needs more time to see what's happening.
Video and audio requirements
Any decodable source. atempo=0.5 is the minimum; going lower (slower) requires chaining (atempo=0.5,atempo=0.5 for 0.25x). Note that very slow video looks choppy because the source frame rate limits the smoothness; a 30 fps source at 0.25x is 7.5 effective fps, which is jerky.
Things to avoid
- Going below 0.5x with a single
atempo. Chain multiple filters for slower speeds. - Forgetting that slow motion reveals the source frame rate. A 24 fps source at 0.5x plays at 12 effective fps, which is juddery. Interpolate frames with
minterpolateif smoothness matters. - Using
atempo=0.5on stereo audio with channels out of phase. The phase vocoder assumes channels are in phase; out-of-phase sources produce artifacts. - Expecting the output to be high quality if the source was high frame rate. Slow motion is a temporal effect; it cannot add detail that the source did not capture.