Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Change this:

vs = cv2.VideoCapture("rtsp://ipcamera/Streaming/Channels/1")

to:

vs = cv2.VideoCapture("rtsp://ipcamera/1")

This my src and its should work.

cap = cv2.VideoCapture('rtsp://username:password@IP:port/1')

Change this:

vs = cv2.VideoCapture("rtsp://ipcamera/Streaming/Channels/1")

to:

vs = cv2.VideoCapture("rtsp://ipcamera/1")
cv2.VideoCapture("rtsp://ipcamera/1,")

or if used pc:

vs = cv2.VideoCapture("rtsp://ipcamera/1,, cv2.CAP_FFMPEG")

This my src on linux raspberry pi and its should work.

cap = cv2.VideoCapture('rtsp://username:password@IP:port/1')

Change this:

vs = cv2.VideoCapture("rtsp://ipcamera/Streaming/Channels/1")

to:

vs = cv2.VideoCapture("rtsp://ipcamera/1,")
cv2.VideoCapture("rtsp://ipcamera/1")

or if used pc:

vs = cv2.VideoCapture("rtsp://ipcamera/1,, cv2.CAP_FFMPEG")

This my src on linux raspberry pi and its should work.

cap = cv2.VideoCapture('rtsp://username:password@IP:port/1')

Change this:

vs = cv2.VideoCapture("rtsp://ipcamera/Streaming/Channels/1")

to:

vs = cv2.VideoCapture("rtsp://ipcamera/1")

or if used pc:

vs = cv2.VideoCapture("rtsp://ipcamera/1,, cv2.VideoCapture("rtsp://ipcamera/1, cv2.CAP_FFMPEG")

This my src on linux raspberry pi and its should work.

cap = cv2.VideoCapture('rtsp://username:password@IP:port/1')