From af45af0fbc3dd08bf11f9a2032a1c5ab8fa9c141 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 2 Mar 2024 12:39:38 +0000 Subject: [PATCH] e --- unifi/cams/base.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/unifi/cams/base.py b/unifi/cams/base.py index 9c85551..15e85a1 100644 --- a/unifi/cams/base.py +++ b/unifi/cams/base.py @@ -905,7 +905,7 @@ class UnifiCamBase(metaclass=ABCMeta): "make_zero", "-fflags", "+genpts+discardcorrupt", - "-use_wallclock_as_timestamps 1", + # "-use_wallclock_as_timestamps 1", ] try: @@ -932,10 +932,18 @@ class UnifiCamBase(metaclass=ABCMeta): f" {self.get_base_ffmpeg_args(stream_index)}" f' -i "{source}"' f" {self.get_extra_ffmpeg_args(stream_index)} -metadata" - f" streamName={stream_name} -f flv -" - # f" | {sys.executable} -m unifi.clock_sync" - # f" {'--write-timestamps' if self._needs_flv_timestamps else ''}" - f" | nc {destination[0]} {destination[1]}" + 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]}" + # "ffmpeg -nostdin -loglevel error -y" + # f" {self.get_base_ffmpeg_args(stream_index)}" + # f' -i "{source}"' + # f" {self.get_extra_ffmpeg_args(stream_index)} -metadata" + # f" streamName={stream_name} -f flv -" + # # f" | {sys.executable} -m unifi.clock_sync" + # # f" {'--write-timestamps' if self._needs_flv_timestamps else ''}" + # f" | nc {destination[0]} {destination[1]}" )