mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 23:29:29 -06:00
FF-2036: Video resolution now also checks heights
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user