I've found many solutions to find the location of keyframes in videos using ffprobe, but all of them are slow, like roughly 0.1x real time on an 8k video.
While this is fine for finding a keyframe near the beginning of a video, I don't want to wait 10 hours to find the position of a keyframe near the 1 hour mark.
Does anyone know of a way to quickly get the location of a keyframe shortly before or after a timestamp?
Example slow answers:
How to get time stamp of closest keyframe before a given timestamp with FFmpeg?
get timestamp of a keyframe exactly before a given timestamp with FFmpeg
Get the list of I-Frames in a video in FFMPEG / Python