Using ffmpeg to change framerate

前端 未结 6 1809
猫巷女王i
猫巷女王i 2020-11-29 01:42

I am trying to convert a video clip (MP4, yuv420p) from 30 fps to 24 fps. The number of frames is correct so my output should change from 20 minutes at 30fps to 25 minutes a

6条回答
  •  暖寄归人
    2020-11-29 02:07

    Simply specify the desired framerate in "-r " option before the input file:

    ffmpeg -y -r 24 -i seeing_noaudio.mp4 seeing.mp4
    

    Options affect the next file AFTER them. "-r" before an input file forces to reinterpret its header as if the video was encoded at the given framerate. No recompression is necessary. There was a small utility avifrate.exe to patch avi file headers directly to change the framerate. ffmpeg command above essentially does the same, but has to copy the entire file.

提交回复
热议问题