Código:
from imutils.video import VideoStream import cv2 # Read rtsp stream rtsp = u"rtsp://admin:admin@10.64.1.31:554/1/h264major" #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("Frame", frame) key = cv2.waitKey(1) & 0xFF # if the `q` key was pressed, break from the loop if key == ord("q"): break # do a bit of cleanup cv2.destroyAllWindows() vs.stop()
¿Podría deberse a problemas de encoding de utf-8, etc. del enlace RTSP? ¿Alguna otra alternativa?
Resuelto : se incluye opencv_ffmpeg320_64.dll junto a mi ejecutable.
Se incluye opencv_ffmpeg320_64.dll junto a mi ejecutable. Alternativamente, copie ese archivo dll a la carpeta DLL en el directorio de Python