You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tooltip="Auto uses sRGB for videos created from images and preserves recognized colors on loaded videos. sRGB writes SDR BT.709/sRGB. HDR writes 10-bit BT.2020/HLG; HDR PQ writes BT.2020/PQ. Other input pixels must already use the selected color space.",
tooltip="The output video codec. Auto preserves a compatible source stream. H.264 and AV1 re-encoding support SDR, HDR (HLG), and HDR PQ.",
142
+
extra_dict={"hidden": True} ifhiddenelseNone,
143
+
)
144
+
145
+
75
146
classSaveVideo(io.ComfyNode):
76
147
@classmethod
77
148
defdefine_schema(cls):
@@ -85,42 +156,37 @@ def define_schema(cls):
85
156
inputs=[
86
157
io.Video.Input("video", tooltip="The video to save."),
87
158
io.String.Input("filename_prefix", default="video/ComfyUI", tooltip="The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."),
88
-
io.Combo.Input("format", options=Types.VideoContainer.as_input(), default="auto", tooltip="The format to save the video as."),
89
159
io.DynamicCombo.Input(
90
-
"codec",
160
+
"format",
91
161
options=[
92
-
io.DynamicCombo.Option("auto", []),
93
-
io.DynamicCombo.Option(
94
-
"h264",
95
-
[
96
-
io.DynamicCombo.Input(
97
-
"encoding",
98
-
display_name="encoding mode",
99
-
options=[
100
-
io.DynamicCombo.Option("auto", []),
101
-
io.DynamicCombo.Option(
102
-
"re-encode",
103
-
[io.Float.Input("crf", default=23.0, min=0.0, max=51.0, step=1.0, tooltip="Lower values produce higher quality and larger files.")],
104
-
),
105
-
],
106
-
optional=True,
107
-
tooltip="Automatic preserves compatible H.264 streams. Re-encode applies a custom CRF.",
0 commit comments