I'm looking for an ffmpeg comand that's best used if I'm controlling a video to mouse control on "requestAnimationFrame". Basically, it needs to be fast-seeking and encoded at a high key frame interval. I can't seem to nail down what parameters aid in fast-seeking and high key frames.
thanks! Johnny
If you're encoding x264 (mp4), try (docs):
If you're encoding vp9 (webm), try (docs):
Both commands will place a new keyframe every 25 frames. If you want more than that (e.g. one keyframe every frame), then perhaps you don't care about compression as much as you care about speed, and it may be worth looking into intra-only codecs such as FFv1.