I want to add key frames on the base of a specific interval (20 frames) to my video.
Therefore I used the following command in ffmpeg:
ffmpeg -i <input> -vcodec libx264 -x264-params keyint=20:scenecut=0 -acodec copy out.mp4
Output is, that I get key frames every 20 frames.
But the original video had a key frame e.g. at frame 1, 12, 89....
Now I have key frames at frame 1, 21, 41....
I don't want to replace the key frames which were already there. I want to add additional key frames, so it looks like this:
frame 1, 12, 21, 41, 89....
How can I do this?