Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Access network video stream

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.