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

后端 未结 8 713
挽巷
挽巷 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 15:48

    I had the same problem. Very annoying (opencv 2.4.9). But what worked for me was passing the absolute file name (avi or mpeg), i.e whole path.

    E.g.:

    char* fileName = "D:/myVideos/video.avi"
    ...
    VideoCapture capture(fileName );
    

提交回复
热议问题