mulll

Simple RTSP Client with OpenCV 본문

Multimedia Processing

Simple RTSP Client with OpenCV

dongha 2023. 3. 24. 22:27

Simple Code:

import cv2

RTSP_URL = "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4"
cap = cv2.VideoCapture(RTSP_URL)

while(cap.isOpened()):
    ret, frame = cap.read()
    cv2.imshow('frame', frame)
    if cv2.waitKey(20) & 0xFF == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()

Result:

 

 

Comments