2825 explained code solutions for 75 technologies

ffmpegHow to change keyframe interval using keyInt

ffmpeg -i in.mp4 -vcodec libx264 -x264-params keyint=5 -acodec copy out.mp4ctrl + c
-i in.mp4

input video file

-vcodec libx264

use H.264 video codec


sets the number of frames inside GOP


use maximum of 5 frames for each GOP, note that this is quite small amount, only for demo purposes

-acodec copy

do not reencode audio, just copy it


resulting video file