title: Capturing RTSP stream fails when the script is turned into a standalone executable using pyinstaller
body: <p>Code:</p>
  <pre><code>from imutils.video import VideoStream
  import cv2
  
  # Read rtsp stream
  rtsp = u&quot;rtsp://admin:admin@10.64.1.31:554/1/h264major&quot;
  #vs = VideoStream(src=0).start() # for capturing from webcam
  vs = VideoStream(src=rtsp).start()
  
  while True:
      frame = vs.read()
   
      # show the output frame
      cv2.imshow(&quot;Frame&quot;, frame)
      key = cv2.waitKey(1) &amp; 0xFF
   
      # if the `q` key was pressed, break from the loop
      if key == ord(&quot;q&quot;):
          break
      
  # do a bit of cleanup
  cv2.destroyAllWindows()
  vs.stop()   
  </code></pre>
  <ol>
  <li>I have faced the same problem when using opencv's VideoCapture [ cap.isOpened() returns False ]</li>
  <li>The standalone executable works fine when capturing from webcam in both cases i.e. cv2.VideoCapture(0) or VideoStream(src=0).start()</li>
  <li>The rtsp stream capture works fine in both cases when the script is run in python i.e. without turning it into a standalone executable.</li>
  <li>The rtsp stream was tested on VLC player and works fine.</li>
  <li>I am using Python 3.6.2 | OpenCV 3.2.0 | Windows</li>
  </ol>
  <p>Could this be due to utf-8 etc encoding issues of the RTSP link?  Any other alternatives?</p>
  <p><strong>Solved</strong>: Included opencv_ffmpeg320_64.dll next to my executable.</p>