So you have AVI files that playable with other movie players but not with your code? Here's the answer. Convert your AVI files to the I420 format supported by OpenCV on all platforms using mencoder:
mencoder in.avi -ovc raw -vf format=i420 -o out.avi
And use this code to play the AVI file:
Listing 1: How to play AVI files with OpenCV
Nash on Feb 28, 2009:
player movie.avi Zachary on Mar 14, 2009:
k09 on Jun 23, 2009:
Nash on Jun 24, 2009:
k09 on Jun 28, 2009:
Nash on Jun 29, 2009:
bhargav ashtekar on Sep 14, 2009:
Nash on Sep 14, 2009:
aviplayer movie.aviShriniket Sarkar on May 1, 2010:
| ICQ | 489571630 |
| Skype | dede_bl4ckheart |
| Yahoo | dede_bl4ckheart |
| nashruddin.amin |
Mohammed Omar on Feb 28, 2009: