Your problem sounds very wierd , I hope this would help. Try to use cvQueryFrame instead of cvRetrieveFrame() and let me know if it does make a ...
stackoverflow.com