e
All checks were successful
Build Docker image / docker (push) Successful in 1m25s

This commit is contained in:
Lee 2024-03-02 14:42:36 +00:00
parent 2ec6f808ca
commit 3716562bcc

@ -901,11 +901,11 @@ class UnifiCamBase(metaclass=ABCMeta):
def get_base_ffmpeg_args(self, stream_index: str = "") -> str:
base_args = [
# "-avoid_negative_ts",
# "make_zero",
"-avoid_negative_ts",
"make_zero",
# "-fflags",
# "+genpts+discardcorrupt",
# "-use_wallclock_as_timestamps 1",
"+genpts",
"-use_wallclock_as_timestamps 1",
]
# try:
@ -942,7 +942,10 @@ class UnifiCamBase(metaclass=ABCMeta):
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]}"
f" -metadata 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]}"
)