title: Best way to load in a video and to grab images using c++
body: <p>I am looking for a fast way to load in a video file and to create images from them at certain intervals ( every second, every minute, every hour, etc.). </p>
  
  <p>I tried using DirectShow, but it just ran too slow for me to start the video file and move to a certain location to get data and to save it out to an image. Even if I disabled the reference clock. Tried OpenCV, but it has trouble opening the AVI file unless I know the exact codec information. So if I know a way to get the codec information out from OpenCV I may give it another shot. I tried to use FFMPEG, but I don't have as much control over it as well as I would wish.</p>
  
  <p>Any advice would be greatly appreciated. This is being developed on a Windows box since it has to be hosted on a Windows box.</p>