title: ffmpeg split avi into frames with known frame rate
body: <p>I posted this as comments under <a href="https://stackoverflow.com/questions/3002601/converting-avi-frames-to-jpgs-on-linux">this related thread</a>. However, they seem to have gone unnoticed =(</p>
  
  <p>I've used</p>
  
  <pre><code>ffmpeg -i myfile.avi -f image2 image-%05d.bmp
  </code></pre>
  
  <p>to split <code>myfile.avi</code> into frames stored as <code>.bmp</code> files. It seemed to work except not quite. When recording my video, I recorded at a rate of <code>1000fps</code> and the video turned out to be <code>2min29sec</code> long. If my math is correct, that should amount to a total of <strong>149,000 frames</strong> for the entire video. However, when I ran</p>
  
  <pre><code>ffmpeg -i myfile.avi -f image2 image-%05d.bmp
  </code></pre>
  
  <p>I only obtained 4472 files. How can I get the original 149k frames?</p>
  
  <p>I also tried to convert the frame rate of my original AVI to 1000fps by doing</p>
  
  <pre><code>ffmpeg -i myfile.avi -r 1000 otherfile.avi
  </code></pre>
  
  <p>but this didn't seem to fix my concern.</p>