Problem scenario
You installed cv2 with "pip3 install opencv-python"
You run a Python program, but you get this error:
[ERROR:0] global /tmp/pip-req-build-afu9cjzs/opencv/modules/videoio/src/cap.cpp (160) open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.5.3) /tmp/pip-req-build-afu9cjzs/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): https://www.youtube.com/watch?v=abcd1234 in function 'icvExtractPattern'
What should you do?
Possible Solution
The video file is not there. Check your code and verify that the uncorrupted video file is in the location your program thinks exists (the directory path and name).