videocapture error opening file
when I use videocapture i get the error message
Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:529)
why?
I use visual c++ 2010.
when I use videocapture i get the error message
Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:529)
why?
I use visual c++ 2010.
Asked: 2014-11-05 03:52:34 -0600
Seen: 3,947 times
Last updated: Nov 05 '14
dear, it just did not find your videofile (wrong path , probably).
the message above is just the place in the code, where the exception occurred.
the video file is in the project folder, where should i put it?
leave it there, instead look at the debugging settings of your project, and change the workingdir, so it starts from the same folder.
Or just skip placing files relatively to your executable at all and just pass along the abosute path to the file! Relative paths are the pitfall of every starting programmer.
not work, what to do?
the code is the next:
to others the code works
Change "video.avi" to the exact location, for example "/home/usr/data/video.avi" ...