This commit is contained in:
parent
85f8d777ed
commit
fe8bdb5a65
@ -908,14 +908,14 @@ class UnifiCamBase(metaclass=ABCMeta):
|
|||||||
# "-use_wallclock_as_timestamps 1",
|
# "-use_wallclock_as_timestamps 1",
|
||||||
]
|
]
|
||||||
|
|
||||||
try:
|
# try:
|
||||||
output = subprocess.check_output(["ffmpeg", "-h", "full"])
|
# output = subprocess.check_output(["ffmpeg", "-h", "full"])
|
||||||
if b"stimeout" in output:
|
# if b"stimeout" in output:
|
||||||
base_args.append("-stimeout 15000000")
|
# base_args.append("-stimeout 15000000")
|
||||||
else:
|
# else:
|
||||||
base_args.append("-timeout 15000000")
|
# base_args.append("-timeout 15000000")
|
||||||
except subprocess.CalledProcessError:
|
# except subprocess.CalledProcessError:
|
||||||
self.logger.exception("Could not check for ffmpeg options")
|
# self.logger.exception("Could not check for ffmpeg options")
|
||||||
|
|
||||||
return " ".join(base_args)
|
return " ".join(base_args)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user