First time here? Check out the FAQ!
answered Oct 22 '12
Here you can find the reference for the VideoCapture class which will help you updating your code and also selecting capture properties:
http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-set