From 1309033011278aba8312d7ab4ea9814cbc8a5caf Mon Sep 17 00:00:00 2001 From: Josh Holmer Date: Sun, 6 Oct 2024 00:40:20 -0400 Subject: [PATCH] Assume BT.709 for UHD video --- vstools/enums/color.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/vstools/enums/color.py b/vstools/enums/color.py index 5f5eb74e..d0ddf457 100644 --- a/vstools/enums/color.py +++ b/vstools/enums/color.py @@ -213,10 +213,7 @@ def from_res(cls, frame: vs.VideoNode | vs.VideoFrame) -> Matrix: return Matrix.SMPTE170M - if width <= 2048 and height <= 1556: - return Matrix.BT709 - - return Matrix.BT2020NCL + return Matrix.BT709 @classmethod def from_video( @@ -829,10 +826,7 @@ def from_res(cls, frame: vs.VideoNode | vs.VideoFrame) -> Primaries: return Primaries.SMPTE170M - if width <= 2048 and height <= 1556: - return Primaries.BT709 - - return Primaries.BT2020 + return Primaries.BT709 @classmethod def from_video(