Quicky output selection of video frames using ffmpeg
<p>I would like to extract, say, 10 video frames from a given video file using ffmpeg, ideally uniformly distributed throughout the video. I know this can be done in a few ways, for example</p>

<pre><code>ffmpeg -i input.mp4 -vf fps=1/10 out%03d.jpg
</code></pre>

<p>will output one image every 10 seconds. However, this is too slow for my liking and scales proportionally with the length of the video. I have read a bit about ffmpeg's seeking capability, for example </p>

<pre><code>ffmpeg -ss 00:00:05 -i input.mp4 -frames:v 1 out001.jpg
</code></pre>

<p>will very quickly seek to the 5th second of the video and extract one frame. However I haven't come across a way to seek to multiple locations in the video without calling the above command repeatedly at various times.</p>

<p>Is there a quicker way of accomplishing this? </p>