Access network video stream [closed]
I have designed an algorithm to analyse streaming video from built in webcam and now I want to use the same algorithm to access network streamed video, but I don't know how to change the setting to do this.
Currently I use: video_capture = cv2.VideoCapture(0) and ret, frame = video_capture.read() to read the video frames from the webcam. Is there a way to do this from a stream such as: rtsp://192.168.240.1:5544/ph. I can access this stream in vlc.
I am using opencv3 and python 2.7.
try :
video_capture = cv2.VideoCapture("rtsp://192.168.240.1:5544/ph")
Thanks for your response. Unfortunately I have already tried this, but I receive the message: Couldn't read movie file rtsp://192.168.240.1:5544/ph
unfortunately, you're at the mercy of ffmpeg / gstreamer now ;(
if you're on win, make sure, cv2.pyd finds opencv_ffmpeg310.dll (or whatever your version is)
Will either of these work with mac?