in File cvaux.h
Line 1167: CvMemStorage* storage; /*storage for �foreground_regions�*/
The characters at the beginning and the end of foreground_regions can not be recognized correctly in Visual C++(at lest can't work on the Simplified Chinese Windows system). Remove the character '�' can solve the problem. Please change the line to:
Line 1167: CvMemStorage*...
It's the bug of OpenCV :-(
img_convert function has been removed from ffmpeg, but opencv still try to use it.
You can recompile your opencv WITHOUT ffmpeg.
1. Have you installed xvid codec?
2. The error may be caused by the version mismatch between opencv and ffmpeg. ffmpeg has been changed a lot recently, but opencv didn't.