$ 0 0 but VideoCapture cap(0); is working for me..it opens the camera.. please anyone give solution..