title: Python OpenCV VideoCapturing problem from IP camera..error:(-5:Bad argument) CAP_IMAGES: can't find starting number
body: <p>I am trying to enable this IP cam that I have access to its feed by the browser. but can't access it through a python project to do some object detection stuff. but I can't seem to get the feed to be <code>cv2.videocapture()</code>ed without an error.
  the link to the camera feed is live and working.
  the capturing code in the main pythin file:</p>
  <pre><code>vs = cv2.VideoCapture('http://&lt;user&gt;:&lt;pass&gt;@&lt;IP&gt;:8080/video.cgi?.mjpg')
  </code></pre>
  <p>I have tried to put rtsp also but no use and I get this error in the cmd when I run the program by command: anything not in &lt;&gt; is exactly how I entered it</p>
  <pre><code>[tcp @ 000001f40de13980] Connection to tcp://&lt;IP&gt;:8080 failed: Error number -138 occurred
  [ERROR:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap.cpp (116) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:
  
  OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): http://&lt;user&gt;:&lt;pass&gt;@&lt;IP&gt;:8080/video.cgi?.mjpg in function 'cv::icvExtractPattern'
  </code></pre>
  <ol>
  <li>Streaming laptop camera works <code>Videocapture(0)</code></li>
  <li>when searching for the port no. in cmd there where 6 internal links so 6 ports I tried all</li>
  <li>I installed FFMPEG in laptop and added path but not sure if active in the project because I don't know-how</li>
  </ol>
  <p>please explain your answer since I'm new and thanks.</p>