Using Windows QuickTime SDK for OpenCV 1.1

Who needs this?

Any OpenCV user (or a future user because of this feature) who wants to read MPEG, AVI and other various video clips robustly in a Windows application.

Why QuickTime?

VFW only supports AVI and DirectShow is extremely difficult to start with. QuickTime is much easier to use.

How?

  1. Download and install QuickTime 7.1 SDK for Windows (preferrably on C:\Program Files\QuickTime SDK\).
  2. Download and install opencv-win 1.1pre1.
  3. Download and save (overwrite) the following three files into the OpenCV\otherlibs\highgui\ directory: _highgui.h, cvcap_qt.cpp, cvcap_qt.cpp, highgui.vs2005-qtime.vcproj, and highgui_quicktime.dsp.
  4. Download and save (overwrite) the following three files into the OpenCV\_make directory (and open them instead of the standard project files): opencv.vs2005-qtime.sln opencv_qtime.dsw
  5. If you installed QuickTime SDK in another directory than C:\Program Files\QuickTime SDK\ modify the Project Settings (C/C++: Preprocessor, Link: Input).
  6. Compile and use it!

Any Problem?

  • Unfortunately, I do not have enough resource to solve any problems regarding different versions of OpenCv/QuickTime/VisualC++.
  • For now, QuickTime 7.1 does not support DivX. Use the standard one (VFX) for DivX.
  • It assumes a fixed frame rate. If the movie is not of a fixed frame rate (some quicktime movies are), it may estimate the total number of frames incorrectly.
  • For any other bugs/problems, please e-mail me.
  • For OpenCV 1.0

    Update History

  • 2008-12-12: release the very first version
  • Legal Comments

    Sorry but I'm not responsible for any problems that may be caused by these downloads.


    Zu Kim, 2008.9.27.