From 3a3c7fead9e35e7f9785b551ff66cb5f0e569126 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 2 Mar 2024 12:10:07 +0000 Subject: [PATCH] no idea what im doing --- unifi/cams/base.py | 2 +- unifi/cams/reolink.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/unifi/cams/base.py b/unifi/cams/base.py index 04ce415..5d1f9a2 100644 --- a/unifi/cams/base.py +++ b/unifi/cams/base.py @@ -929,7 +929,7 @@ class UnifiCamBase(metaclass=ABCMeta): source = await self.get_stream_source(stream_index) cmd = ( "ffmpeg -nostdin -loglevel error -y" - f" {self.get_base_ffmpeg_args(stream_index)} -rtsp_transport" + # f" {self.get_base_ffmpeg_args(stream_index)} -rtmp_transport" f' {self.args.rtsp_transport} -i "{source}"' f" {self.get_extra_ffmpeg_args(stream_index)} -metadata" f" streamName={stream_name} -f flv - | {sys.executable} -m" diff --git a/unifi/cams/reolink.py b/unifi/cams/reolink.py index 7feb061..ae2ef44 100644 --- a/unifi/cams/reolink.py +++ b/unifi/cams/reolink.py @@ -147,8 +147,3 @@ class Reolink(UnifiCamBase): 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}" - # )