diff --git a/nixos/modules/services/misc/jellyfin.nix b/nixos/modules/services/misc/jellyfin.nix index d9e76154f0a8..7a6c5dae8536 100644 --- a/nixos/modules/services/misc/jellyfin.nix +++ b/nixos/modules/services/misc/jellyfin.nix @@ -33,7 +33,11 @@ let ; cfg = config.services.jellyfin; filteredDecodingCodecs = builtins.filter ( - c: c != "hevcRExt10bit" && c != "hevcRExt12bit" && cfg.transcoding.hardwareDecodingCodecs.${c} + c: + c != "hevc10bit" + && c != "hevcRExt10bit" + && c != "hevcRExt12bit" + && cfg.transcoding.hardwareDecodingCodecs.${c} ) (builtins.attrNames cfg.transcoding.hardwareDecodingCodecs); encodingXmlText = '' @@ -58,6 +62,7 @@ let ${boolToString cfg.transcoding.hardwareEncodingCodecs.av1} ${boolToString cfg.transcoding.enableIntelLowPowerEncoding} ${boolToString cfg.transcoding.enableIntelLowPowerEncoding} + ${boolToString cfg.transcoding.hardwareDecodingCodecs.hevc10bit} ${boolToString cfg.transcoding.hardwareDecodingCodecs.hevcRExt10bit} ${boolToString cfg.transcoding.hardwareDecodingCodecs.hevcRExt12bit} diff --git a/nixos/tests/jellyfin.nix b/nixos/tests/jellyfin.nix index 4896c13d4eca..7463b920727e 100644 --- a/nixos/tests/jellyfin.nix +++ b/nixos/tests/jellyfin.nix @@ -33,6 +33,7 @@ hardwareDecodingCodecs = { h264 = true; hevc = true; + hevc10bit = true; vp9 = true; hevcRExt10bit = true; hevcRExt12bit = true; @@ -174,7 +175,8 @@ assert config.get("EnableIntelLowPowerH264HwEncoder") == True, f"Intel low power H264: expected True, got '{config.get('EnableIntelLowPowerH264HwEncoder')}'" assert config.get("EnableIntelLowPowerHevcHwEncoder") == True, f"Intel low power HEVC: expected True, got '{config.get('EnableIntelLowPowerHevcHwEncoder')}'" - # HEVC RExt color depth verification + # HEVC color depth verification + assert config.get("EnableDecodingColorDepth10Hevc") == True, f"HEVC 10bit: expected True, got '{config.get('EnableDecodingColorDepth10Hevc')}'" assert config.get("EnableDecodingColorDepth10HevcRext") == True, f"HEVC RExt 10bit: expected True, got '{config.get('EnableDecodingColorDepth10HevcRext')}'" assert config.get("EnableDecodingColorDepth12HevcRext") == True, f"HEVC RExt 12bit: expected True, got '{config.get('EnableDecodingColorDepth12HevcRext')}'"