Speed ≠ frame rate
Changing playback speed is different from changing frame rate. fps drops or duplicates frames; speed change actually re-times the video. The pieces:
- setpts=PTS*N — multiply video frame timestamps by N.
N=0.5= 2x speed (half the time per frame).N=2= half speed. - atempo=N — change audio tempo without changing pitch. Range 0.5–2.0 per filter — chain for bigger changes.
Common speed values
- 2x:
setpts=PTS*0.5+atempo=2 - Half:
setpts=PTS*2+atempo=0.5 - 3x:
setpts=PTS*0.333+atempo=2,atempo=1.5(chain)