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

后端 未结 8 669
挽巷
挽巷 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

    to clear up some confusion here:

    the error means, that it could not find or open your Video file. (either file not found, or codec not present)

    "/home/vaibhav/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:553" is just the location of the code, where the error is thrown.

    (and please, don't use the deprecated c-api any longer, they stopped developing it like 5 years ago, switch over to the c++ one. )

提交回复
热议问题