From c4610bc9570d32c7f28b46e3d7aa3f1fb71aff1e Mon Sep 17 00:00:00 2001 From: Benedikt Nerb Date: Tue, 28 Jun 2022 10:26:15 +0200 Subject: [PATCH] Adjust HDR check --- VideoLegacyNodes/VideoInfoHelper.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VideoLegacyNodes/VideoInfoHelper.cs b/VideoLegacyNodes/VideoInfoHelper.cs index 3a186b3e..e499f08c 100644 --- a/VideoLegacyNodes/VideoInfoHelper.cs +++ b/VideoLegacyNodes/VideoInfoHelper.cs @@ -249,7 +249,9 @@ namespace FileFlows.VideoNodes logger?.ILog("Failed to read duration for VideoStream: " + info); } - vs.HDR = info.Contains("bt2020nc") && info.Contains("smpte2084"); + // As per https://video.stackexchange.com/a/33827 + // "HDR is only the new transfer function" (PQ or HLG) + vs.HDR = info.Contains("arib-std-b67") || info.Contains("smpte2084"); return vs; }