Add hwaccel option
This commit is contained in:
parent
ece83b0384
commit
0ce0a59e71
|
@ -22,7 +22,7 @@ let
|
||||||
password = "{FRIGATE_MQTT_PASSWORD}";
|
password = "{FRIGATE_MQTT_PASSWORD}";
|
||||||
};
|
};
|
||||||
logger.default = cfg.log-level;
|
logger.default = cfg.log-level;
|
||||||
# ffmpeg.hwaccel_args = [ "preset-intel-vaapi" ];
|
ffmpeg.hwaccel_args = optional (cfg.hwaccel != null) cfg.hwaccel;
|
||||||
cameras = mapAttrs' (_: camOpts:
|
cameras = mapAttrs' (_: camOpts:
|
||||||
nameValuePair camOpts.name {
|
nameValuePair camOpts.name {
|
||||||
ffmpeg.inputs = [
|
ffmpeg.inputs = [
|
||||||
|
@ -74,6 +74,12 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hwaccel = mkOption {
|
||||||
|
type = nullOr str;
|
||||||
|
description = "Hardware acceleration driver.";
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
|
||||||
retention = {
|
retention = {
|
||||||
default = mkOption {
|
default = mkOption {
|
||||||
type = int;
|
type = int;
|
||||||
|
|
Loading…
Reference in New Issue