Recording video from camera

is the problem. You may rebuild and reinstall opencv using one of these scripts.