FF-2036: Video resolution now also checks heights

This commit is contained in:
John Andrews
2025-01-31 13:55:03 +13:00
parent 8c9c7da8fb
commit 94b6c092df

View File

@@ -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