I’m trying to do
VideoCapture cap (../video.avi);
Getting an error: Couldn’t read movie file …/video.avi
i’m using Opencv 2.3.1
Any suggestions? thanks a lot.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you trying to save a video stream (e.g. webcam) to disk, or are you trying to read from a video file?
In the first case, you capture from your default device with
VideoCapture cap (0);Then you have to use the VideoWriter class to save it to disk.
If you want to read from a file, then you are probably not using the right path.