Framerate conversion

Input duration

Seconds
1438 frames
59.98 sec(s)

Conversion 'conform': 23.976 → 25fps

Definition
The total # of frames stays the same
1438 frames
Speed
video is sped up from 23.976 to 25 fps
+4.27%
Audio
As a result, the audio will sound higher
Correct audio
pitch down by 4.096% (-0.724 semitones)
95.9%
Convert video
ffmpeg -i [input] -r 25 -filter:v "setpts=0.959*PTS" -y [output]
Convert audio
sox [input] [output] tempo 1.0427
ffmpeg -i [input] -filter:a "atempo=1.0427" -vn [output]
Duration: time
1438 frames / 25 fps
57.52 sec

Conversion 'interpolate': 23.976 → 25fps

Definition
The total duration stays the same
59.98 sec
New length
59.98 seconds * 25 fps
1500 frames
Naive conversion
add a copied frame every
23 frames
Convert video
ffmpeg -i [input] -r 25 -y [output]
Convert audio
audio stays exactly the same

Explanation

  • Calculate # frames from time duration and vice versa. e.g. 93 sec @ 24fps = 2232 frames
  • Calculate how audio and video should be manipulated to change from one framerate to another, using sox and/or ffmpeg
  • When is this necessary? If you have a video that was recorded in 25fps(PAL) or 30fps(NTSC), and you want to show it on a cinema screen: you have to convert the framerate to 24 fps.