The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Validate chroma subsampling input. (#17501)
comfyanonymous858fd58dcd47
diff --git a/comfy_extras/nodes_video.py b/comfy_extras/nodes_video.pyindex afb7d6927..9ce25a3f7 100644--- a/comfy_extras/nodes_video.py+++ b/comfy_extras/nodes_video.py@@ -261,11 +261,12 @@ class CreateVideo(io.ComfyNode):) -> io.NodeOutput:if bit_depth == "auto":bit_depth = 10 if color_space in ("HDR", "HDR PQ") else 8+ chroma_subsampling = chroma_subsampling if chroma_subsampling in ("444", "422", "420") else Nonevideo = InputImpl.VideoFromComponents(Types.VideoComponents(images=images, audio=audio, frame_rate=Fraction(fps)),bit_depth=bit_depth,color_space=color_space,- chroma_subsampling=None if chroma_subsampling == "auto" else chroma_subsampling,+ chroma_subsampling=chroma_subsampling,)if codec != "none":video = InputImpl.VideoFromList([video], codec=Types.VideoCodec(codec))