title: Extract list of specific frames using ffmpeg
body: <p>I'm trying to use ffmpeg on a video to extract a list of specific frames, denoted by their frame numbers. So lets say I want to extract just one frame from 'test_video.mp4', frame number 150 to be exact. I can use the following command</p>
  
  <p><code>ffmpeg -i test_video.mp4 -vf "select=gte(n\, 150)" -vframes 1 ~/test_image.jpg</code></p>
  
  <p>But what if I want to exact a list of frames, such as <code>[100, 110, 127, 270, 300]</code>? I have been looking at this page (<a href="https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect" rel="noreferrer">https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect</a>) and can see that there are ways to extract multiple frames based on parity of frame number, timestamps, etc, but I can't find the syntax for doing what I need to do.</p>
  
  <p>Ideally I would extract the list of given frames under the naming convention <code>out_image%03d.jpg</code> where the <code>%03d</code> is replaced by the given frame number, although a timestamp would also work.</p>
  
  <p>Is there a way to do this?</p>