This commit is contained in:
Nicolas Mowen 2024-09-13 11:19:53 -06:00
parent 8842f80060
commit 3a04cae5c7
2 changed files with 6 additions and 2 deletions

View File

@ -210,6 +210,10 @@ birdseye:
# Optional: ffmpeg configuration # Optional: ffmpeg configuration
# More information about presets at https://docs.frigate.video/configuration/ffmpeg_presets # More information about presets at https://docs.frigate.video/configuration/ffmpeg_presets
ffmpeg: 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) # Optional: global ffmpeg args (default: shown below)
global_args: -hide_banner -loglevel warning -threads 2 global_args: -hide_banner -loglevel warning -threads 2
# Optional: global hwaccel args (default: auto detect) # Optional: global hwaccel args (default: auto detect)

View File

@ -49,12 +49,12 @@ class LibvaGpuSelector:
FPS_VFR_PARAM = ( FPS_VFR_PARAM = (
"-fps_mode vfr" "-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" else "-vsync 2"
) )
TIMEOUT_PARAM = ( TIMEOUT_PARAM = (
"-timeout" "-timeout"
if int(os.getenv("LIBAVFORMAT_VERSION_MAJOR", "59")) >= 59 if int(os.getenv("LIBAVFORMAT_VERSION_MAJOR", "59") or "59") >= 59
else "-stimeout" else "-stimeout"
) )