IplImage *frame;
CvCapture* capture = cvCreateFileCapture( argv[1] );
while(1)
{
frame = cvQueryFrame(capture);
//do other thing...
}
cvReleaseCapture( &capture );
将xvid格式的avi文件:狸窝全能视频转换器:http://www.leawo.cn/
XviD codec解码器 :http://www.xvidmovies.com/codec/