andrewssobral / simple_vehicle_counting

Vehicle Detection, Tracking and Counting
496 stars 246 forks source link

cant play with video #3

Closed seekerquoc closed 8 years ago

seekerquoc commented 8 years ago

it alwayls give me error, cant open video, can you help me?

zshn25 commented 8 years ago

Same, Please help. It says Can't open Video!. I'm using VS2013. I guess this program doesn't reqquire OpenCV2.4 to be installed. I have OpenCV3.0 by the way. image

I tried to use cv::VideoCapture capture("dataset/video.avi"); instead of CvCapture *capture = 0; capture = cvCaptureFromAVI("dataset/video.avi");. But, I get this error

IntelliSense: no suitable conversion function from "cv::VideoCapture" to "CvCapture *" exists

Edit: I tweaked a bit and the above error is gone. But, I still can't read the video file. Tried using other video sources but in vain.

aubryll commented 8 years ago

download klite, it comes with alll necessary codecs, I had the same issue too until i installed klite

andrewssobral commented 8 years ago

Hi @seekerquoc and @zshn25 , sorry for my long delayed response, I was on vacation. Please copy and past the opencv_ffmpeg2410.dll (for OpenCV 2.4.10) or related file for OpenCV3 in your project folder. Another solution is to put the OpenCV bin folder in your system path. Please, let me know if the problem persists. (and check if all necessary codecs are installed, as @aubryll said).