File exists but VideoCapture fails to open

I am getting the same error. file exists? True
OpenCV: Couldn’t read video stream from file “output.mp4”
Error opening the video file

print(cv.getBuildInformation())

and post the output please. the Video I/O section is most important.

what’s the result of vid.isOpened()?

2 posts were split to a new topic: File exists but VideoCapture fails to open, isOpened() returns False