diff --git a/docs/docs/configuration/reference.md b/docs/docs/configuration/reference.md index 2eae6ef90..1ae0739e7 100644 --- a/docs/docs/configuration/reference.md +++ b/docs/docs/configuration/reference.md @@ -210,6 +210,10 @@ birdseye: # Optional: ffmpeg configuration # More information about presets at https://docs.frigate.video/configuration/ffmpeg_presets ffmpeg: + # Optional: ffmpeg binry path (default: shown below) + # can also be set to `7.0` or `5.0` to specify one of the included versions + # or can be set to any path that holds `bin/ffmpeg` & `bin/ffprobe` + path: "default" # Optional: global ffmpeg args (default: shown below) global_args: -hide_banner -loglevel warning -threads 2 # Optional: global hwaccel args (default: auto detect) diff --git a/frigate/ffmpeg_presets.py b/frigate/ffmpeg_presets.py index 1cf9bef43..0eb2fa1f4 100644 --- a/frigate/ffmpeg_presets.py +++ b/frigate/ffmpeg_presets.py @@ -49,12 +49,12 @@ class LibvaGpuSelector: FPS_VFR_PARAM = ( "-fps_mode vfr" - if int(os.getenv("LIBAVFORMAT_VERSION_MAJOR", "59")) >= 59 + if int(os.getenv("LIBAVFORMAT_VERSION_MAJOR", "59") or "59") >= 59 else "-vsync 2" ) TIMEOUT_PARAM = ( "-timeout" - if int(os.getenv("LIBAVFORMAT_VERSION_MAJOR", "59")) >= 59 + if int(os.getenv("LIBAVFORMAT_VERSION_MAJOR", "59") or "59") >= 59 else "-stimeout" )