From 96e0c4a1206c47be517786c9be5c3a4d3d76c577 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 2 Mar 2024 12:03:38 +0000 Subject: [PATCH] fuck reolinks shitty firmware --- unifi/cams/reolink.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/unifi/cams/reolink.py b/unifi/cams/reolink.py index c24cbbb..7feb061 100644 --- a/unifi/cams/reolink.py +++ b/unifi/cams/reolink.py @@ -143,6 +143,12 @@ class Reolink(UnifiCamBase): stream = self.args.substream return ( - f"rtmp://{self.args.username}:{self.args.password}@{self.args.ip}:1935" - f"//h264Preview_{int(self.args.channel) + 1:02}_{stream}" + f"rtmp://{self.args.ip}/bcs/channel{self.args.channel}_{stream}.bcs" + f"?channel={self.args.channel}&stream=0&user={self.args.username}" + f"&password={self.args.password}" ) + + # return ( + # f"rtmp://{self.args.username}:{self.args.password}@{self.args.ip}:1935" + # f"//h264Preview_{int(self.args.channel) + 1:02}_{stream}" + # )