Error opening file (/home/vaibhav/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:553) in openCV

后端 未结 8 571
挽巷
挽巷 2020-12-30 15:10

I am using OpenCV to display a video my code is as

#include
#include
#include
#include

        
相关标签:
8条回答
  • 2020-12-30 16:06

    I also got the same error if the video is not present in the folder. So, just put the video at a place where you don't need to give a long path which you are doing currently (just to see that your program can work). For example, i have placed my video just outside the "source folder", so i just write capture = cvCreateFileCapture("video.avi");

    0 讨论(0)
  • 2020-12-30 16:06

    I just used double quotes instead of single quotes using the entire video path and it worked for me! (on windows)

    0 讨论(0)
提交回复
热议问题