Currently only know OPENCV support AVI format video read, but in the online several AVI video found not read, after a few days of search found, although the file is AVI format, but the way the device is encoded, or not, It was later found that OPENCV currently supports video encoded by XviD and DivX encoders.
Found a good site http://muonics.net/cvMovies/downloaded several good. mov videos, and the next online mov to AVI MPEG WMV Converter (downloadable to the registration code) for conversion, mov file converted to AVI file, to select the correct encoder.
Also found that when the mouse selected an AVI video file, you will be prompted to desktop.exe the error of the prompt box, and then click "Do not send" found that the left program will automatically end and restart. Later on the internet under a "Xvid-1.1.2-01112006.exe", direct installation can solve this problem.