Faster way of getting number of key frames than "show_frames" in ffprobe?
<p>I'm making a little in-house utility using <code>ffmpg</code> and <code>ffprobe</code>. Works fine and does what is needed: give a count of the number of key frames in a video file plus some other details.</p>

<p>Alas, with the large video files this will be used on it can take many seconds for <code>show_frames</code> to return – and I then have to parse the JSON dump of frame data and keep a running count of the total key frames.</p>

<p>Is there a faster way? Perhaps it is listed in the "stream" or "format" data dumps and I am not recognizing what it is being called? I've been through the <code>ffmpg</code> and <code>ffprobe</code> docs and didn't find anything else.</p>