In this tutorial I've explained some basic video processing operations such as getting the input from a Video file or a webcam, process those frame and apply some image trans formation operations.
In the function "cvCreateFileCapture("");" , the default location is the project directory from where it loads the Video file, you can also include the path of the video file inside quotes just like in the last tutorial I've explained.
In the function "cvCreateCameraCapture();", 'CV_CAP_ANY ' argument detects the default webcam connected to PC and gets the input from that. But if you are having multiple webcams then you can include arguments like :
Arguments Numerical Value
In " if(c==27) " statement you can compare the value with any other key pressed and break the loop, visit the link below to know the ascii values of different keys :
" http://www.lucidtechnologies.info/ascii.htm "
Source Code: " https://drive.google.com/file/d/0Bxr1St4kFOnQT3ZhbFlTS2V1UFE/edit?usp=sharing "