I am unable to open a .avi
video file with OpenCV python. In my head it is a very simple task, but for some reason, I am unable to open the file.
When I run os.path.exists(<video_file_path>)
, it returns True
, but when I run cap.isOpened()
it returns False
. I have attached a screenshot of the error. One thing that comes to my mind is that it could be a ffmpeg issue, which might be caused by missing binaries on the host.
I am on a server with Red Hat Linux and Python version is 3.6.8 and OpenCV version 4.10.0.