From 6bf05a8d1bd22aea0ba72a5b9bd55ae43a6c3952 Mon Sep 17 00:00:00 2001 From: Andrew Reiter Date: Wed, 5 Jul 2023 16:32:00 -0400 Subject: [PATCH] Default ffmpeg version to current btbn version so unit tests pass --- frigate/ffmpeg_presets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frigate/ffmpeg_presets.py b/frigate/ffmpeg_presets.py index f08846813..c719213f5 100644 --- a/frigate/ffmpeg_presets.py +++ b/frigate/ffmpeg_presets.py @@ -43,7 +43,9 @@ class LibvaGpuSelector: TIMEOUT_PARAM = ( - "-timeout" if int(os.environ["LIBAVFORMAT_VERSION_MAJOR"]) >= 59 else "-stimeout" + "-timeout" + if int(os.getenv("LIBAVFORMAT_VERSION_MAJOR", "59")) >= 59 + else "-stimeout" ) _gpu_selector = LibvaGpuSelector()