From 94b6c092df4d0bc8145e2d688ac8aa476fe381de Mon Sep 17 00:00:00 2001 From: John Andrews Date: Fri, 31 Jan 2025 13:55:03 +1300 Subject: [PATCH] FF-2036: Video resolution now also checks heights --- VideoNodes/LogicalNodes/VideoResolution.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VideoNodes/LogicalNodes/VideoResolution.cs b/VideoNodes/LogicalNodes/VideoResolution.cs index 36101f88..12781cde 100644 --- a/VideoNodes/LogicalNodes/VideoResolution.cs +++ b/VideoNodes/LogicalNodes/VideoResolution.cs @@ -48,19 +48,19 @@ public class VideoResolution: VideoNode return -1; // no video streams detected } - if (video.Width > 3700) + if (video.Width > 3700 || video.Height >= 2060) { args.Logger?.ILog($"4k Video Detected: {video.Width}x{video.Height}"); return 1; // 4k } - if (video.Width > 1800) + if (video.Width > 1800 || video.Height >= 1000) { args.Logger?.ILog($"1080p Video Detected: {video.Width}x{video.Height}"); return 2; // 1080p } - if (video.Width > 1200) + if (video.Width > 1200 || video.Height >= 680) { args.Logger?.ILog($"720p Video Detected: {video.Width}x{video.Height}"); return 3; // 720p