Add hwaccel option
This commit is contained in:
parent
ece83b0384
commit
0ce0a59e71
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue