title: Video to image sequence with Handbrake CLI
body: <p>I'm trying to create a Mac App for internal use, that grabs a movie file specified by the user, converts it to a specific format and saves every frame as an image on the hard drive.
  I've got the converting part done, using the awesome Handbrake CLI.</p>
  
  <p>Now I'm trying to find a way to save each frame as an image, but I can't find a way of doing it.</p>
  
  <p>It seems ffmpeg has a command to extract frames into images. The following pulls a single frame five seconds in: </p>
  
  <pre><code>ffmpeg -i "infile.mp4" -r 1 -ss 00:00:05 -t 00:00:01 -vframes 1 -f image2 -y "image.jpg"
  </code></pre>
  
  <p><strong>However, I'd rather use QTKit or the Handbrake CLI</strong>, so I won't have to add both ffmpeg and Handbrake to the app.</p>
  
  <p>Any ideas would be much appreciated!</p>