This commit is contained in:
parent
cdb8ace481
commit
85fa1c368d
@ -903,20 +903,8 @@ class UnifiCamBase(metaclass=ABCMeta):
|
|||||||
base_args = [
|
base_args = [
|
||||||
"-avoid_negative_ts",
|
"-avoid_negative_ts",
|
||||||
"make_zero",
|
"make_zero",
|
||||||
# "-fflags",
|
|
||||||
# "+genpts",
|
|
||||||
"-use_wallclock_as_timestamps 1",
|
"-use_wallclock_as_timestamps 1",
|
||||||
]
|
]
|
||||||
|
|
||||||
# try:
|
|
||||||
# output = subprocess.check_output(["ffmpeg", "-h", "full"])
|
|
||||||
# if b"stimeout" in output:
|
|
||||||
# base_args.append("-stimeout 15000000")
|
|
||||||
# else:
|
|
||||||
# base_args.append("-timeout 15000000")
|
|
||||||
# except subprocess.CalledProcessError:
|
|
||||||
# self.logger.exception("Could not check for ffmpeg options")
|
|
||||||
|
|
||||||
return " ".join(base_args)
|
return " ".join(base_args)
|
||||||
|
|
||||||
async def start_video_stream(
|
async def start_video_stream(
|
||||||
@ -927,18 +915,8 @@ class UnifiCamBase(metaclass=ABCMeta):
|
|||||||
|
|
||||||
if not has_spawned or is_dead:
|
if not has_spawned or is_dead:
|
||||||
source = await self.get_stream_source(stream_index)
|
source = await self.get_stream_source(stream_index)
|
||||||
# cmd = (
|
|
||||||
# "ffmpeg -nostdin -loglevel error -y"
|
|
||||||
# f" {self.get_base_ffmpeg_args(stream_index)} -rtsp_transport"
|
|
||||||
# f' {self.args.rtsp_transport} -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]}"
|
|
||||||
# )
|
|
||||||
cmd = (
|
cmd = (
|
||||||
"ffmpeg -nostdin -loglevel debug -y"
|
"ffmpeg -nostdin -loglevel error -y"
|
||||||
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)}"
|
f" {self.get_extra_ffmpeg_args(stream_index)}"
|
||||||
|
Reference in New Issue
Block a user