Add hwaccel option

This commit is contained in:
niten 2023-11-26 21:19:49 -08:00
parent ece83b0384
commit 0ce0a59e71
1 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,7 @@ let
password = "{FRIGATE_MQTT_PASSWORD}";
};
logger.default = cfg.log-level;
# ffmpeg.hwaccel_args = [ "preset-intel-vaapi" ];
ffmpeg.hwaccel_args = optional (cfg.hwaccel != null) cfg.hwaccel;
cameras = mapAttrs' (_: camOpts:
nameValuePair camOpts.name {
ffmpeg.inputs = [
@ -74,6 +74,12 @@ in {
};
};
hwaccel = mkOption {
type = nullOr str;
description = "Hardware acceleration driver.";
default = null;
};
retention = {
default = mkOption {
type = int;