From 2ec6f808ca83f90b27d72e01ce2c124da6a83b02 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 2 Mar 2024 14:38:32 +0000 Subject: [PATCH] e --- unifi/cams/base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/unifi/cams/base.py b/unifi/cams/base.py index 3716b23..15954bd 100644 --- a/unifi/cams/base.py +++ b/unifi/cams/base.py @@ -903,7 +903,7 @@ class UnifiCamBase(metaclass=ABCMeta): base_args = [ # "-avoid_negative_ts", # "make_zero", - "-fflags", + # "-fflags", # "+genpts+discardcorrupt", # "-use_wallclock_as_timestamps 1", ] @@ -938,11 +938,11 @@ class UnifiCamBase(metaclass=ABCMeta): # f" {destination[0]} {destination[1]}" # ) cmd = ( - "ffmpeg -nostdin -loglevel debug -y " - f"{self.get_base_ffmpeg_args(stream_index)} " - f'-i "{source}" ' - f"{self.get_extra_ffmpeg_args(stream_index)} " - f"-metadata streamName={stream_name} - | nc {destination[0]} {destination[1]}" + "ffmpeg -nostdin -loglevel debug -y" + f" {self.get_base_ffmpeg_args(stream_index)}" + f' -i "{source}"' + f" {self.get_extra_ffmpeg_args(stream_index)}" + f" -metadata streamName={stream_name} -f flv - | nc {destination[0]} {destination[1]}" )