e
Some checks failed
Build Docker image / docker (push) Has been cancelled

This commit is contained in:
Lee 2024-03-02 12:39:38 +00:00
parent e646f9dad0
commit af45af0fbc

@ -905,7 +905,7 @@ class UnifiCamBase(metaclass=ABCMeta):
"make_zero", "make_zero",
"-fflags", "-fflags",
"+genpts+discardcorrupt", "+genpts+discardcorrupt",
"-use_wallclock_as_timestamps 1", # "-use_wallclock_as_timestamps 1",
] ]
try: try:
@ -932,10 +932,18 @@ class UnifiCamBase(metaclass=ABCMeta):
f" {self.get_base_ffmpeg_args(stream_index)}" f" {self.get_base_ffmpeg_args(stream_index)}"
f' -i "{source}"' f' -i "{source}"'
f" {self.get_extra_ffmpeg_args(stream_index)} -metadata" f" {self.get_extra_ffmpeg_args(stream_index)} -metadata"
f" streamName={stream_name} -f flv -" f" streamName={stream_name} -f flv - | {sys.executable} -m"
# f" | {sys.executable} -m unifi.clock_sync" # " unifi.clock_sync"
# f" {'--write-timestamps' if self._needs_flv_timestamps else ''}" # f" {'--write-timestamps' if self._needs_flv_timestamps else ''} | nc"
f" | nc {destination[0]} {destination[1]}" 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]}"
) )