This commit is contained in:
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)
|
||||
|
||||
|
Reference in New Issue
Block a user