Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create Video 节点是 ComfyUI 中用于创建视频的节点。
class CreateVideo(ComfyNodeABC): @classmethod def INPUT_TYPES(cls): return { "required": { "images": (IO.IMAGE, {"tooltip": "The images to create a video from."}), "fps": ("FLOAT", {"default": 30.0, "min": 1.0, "max": 120.0, "step": 1.0}), }, "optional": { "audio": (IO.AUDIO, {"tooltip": "The audio to add to the video."}), } } RETURN_TYPES = (IO.VIDEO,) FUNCTION = "create_video" CATEGORY = "image/video" DESCRIPTION = "Create a video from images." def create_video(self, images: ImageInput, fps: float, audio: Optional[AudioInput] = None): return (VideoFromComponents( VideoComponents( images=images, audio=audio, frame_rate=Fraction(fps), ) ),)
Was this page helpful?