From 8d1f1a9dd28b8a9a2bc3c5946d58db4ae8fa3657 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 2 Mar 2024 12:19:54 +0000 Subject: [PATCH] still no idea what im doing --- unifi/cams/base.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/unifi/cams/base.py b/unifi/cams/base.py index 6b043e7..788e90f 100644 --- a/unifi/cams/base.py +++ b/unifi/cams/base.py @@ -929,15 +929,16 @@ 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)} -rtmp_transport" f' -i "{source}"' - f" {self.get_extra_ffmpeg_args(stream_index)} -metadata" - f" streamName={stream_name} -f flv - | {sys.executable} -m" - " unifi.clock_sync" - f" {'--write-timestamps' if self._needs_flv_timestamps else ''} | nc" - f" {destination[0]} {destination[1]}" + # f" {self.get_extra_ffmpeg_args(stream_index)} -metadata" + f" streamName={stream_name} -f flv -" + "-re" + # f" | {sys.executable} -m unifi.clock_sync" + # f" {'--write-timestamps' if self._needs_flv_timestamps else ''}" + f" | nc {destination[0]} {destination[1]}" ) + if is_dead: self.logger.warn(f"Previous ffmpeg process for {stream_index} died.")