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

This commit is contained in:
Lee 2024-03-02 13:48:04 +00:00
parent 85f8d777ed
commit fe8bdb5a65

@ -908,14 +908,14 @@ class UnifiCamBase(metaclass=ABCMeta):
# "-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")
# 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)