Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def receive(producer_q):
cam_ip = os.environ['CAM_IP']
cam_pw = os.environ['CAM_PW']
connect_str = "rtsp://admin:" + cam_pw + "@" + cam_ip
connect_str2 = connect_str + ":554" + "//h264Preview_01_main" # this might be different depending on camera used
connect_str2 = connect_str + ":554" + "//h264Preview_01_sub" # this might be different depending on camera used

os.environ['OPENCV_FFMPEG_CAPTURE_OPTIONS'] = 'rtsp_transport;tcp' # Use tcp instead of udp if stream is unstable
c = cv2.VideoCapture(connect_str)
Expand Down