Videocapture cap not working
Hello. For some reason my (!cap.isOpened()) is always true in my code. I have my videocapture cap with the path inside it. The error I get is as follows:
[ INFO:0] VIDEOIO: Enabled backends(6, sorted by priority): FFMPEG(1000); MSMF(990); DSHOW(980); VFW(970); CV_IMAGES(960); CV_MJPEG(950)
warning: Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:856)
warning: Documents/MRC/objectTrackingTut/x64/Debug/RobotX_2018_Ring_Recovery_Capture2.avi (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:857)
Error opening video stream or file
Thank you for the help.
try with an absolute file path.
I just tried the absolute file path. It causes the error to go down to just: [ INFO:0] VIDEOIO: Enabled backends(6, sorted by priority): FFMPEG(1000); MSMF(990); DSHOW(980); VFW(970); CV_IMAGES(960); CV_MJPEG(950) Error opening video stream or file