import cv2
# Our Free Test RSTP Link
# You can configure your CCTV IPTV Cameras to output a RSTP Stream
cap = cv2.VideoCapture("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4")
while True:
ret, frame = cap.read()
cv2.imshow('CCTV', frame)
if cv2.waitKey(1) == 27:
break
# Release camera and close windows
cap.release()
cv2.destroyAllWindows()
import cv2
import imagezmq
image_hub = imagezmq.ImageHub()
while True: # show streamed images until Ctrl-C
rpi_name, image = image_hub.recv_image()
cv2.imshow(rpi_name, image) # 1 window for each RPi
cv2.waitKey(1)
image_hub.send_reply(b'OK')