This may seem like an issue related to a special version of OpenCV. However, when I have searched nearly everywhere and specially StackOverFlow, no reasonable answer was found.
I am trying to load a video file with ffmpeg in OpenCV using VideoCapture handle. The file is loaded if it is the tree.avi sample movie in the OpenCV samples directory, but every other avi file leads to the following error:
warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:526)
The hpp file seems to be the file where the error is detected and is not the file containing the error. I can only assume that ffmpeg is not compatible with OpenCV and either I should start looking for another library to open video files or I should assume that OpenCV works only for its own samples. If anyone has any idea, please share. Should I use another library to open all different kinds of files, formats with encodings instead of OpenCV or not?