ComfyUI > Nodes > ComfyUI-WanVaceAdvanced > WanVaceToVideoLatent

ComfyUI Node: WanVaceToVideoLatent

Class Name

WanVaceToVideoLatent

Category
WanVaceAdvanced
Author
drozbay (Account age: 3591days)
Extension
ComfyUI-WanVaceAdvanced
Latest Updated
2025-12-12
Github Stars
0.06K

How to Install ComfyUI-WanVaceAdvanced

Install this extension via the ComfyUI Manager by searching for ComfyUI-WanVaceAdvanced
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-WanVaceAdvanced in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

WanVaceToVideoLatent Description

Transform video inputs into latent representations for AI-driven video processing tasks using VACE framework for advanced manipulation and analysis.

WanVaceToVideoLatent:

The WanVaceToVideoLatent node is designed to transform video inputs into latent representations, which are essential for various AI-driven video processing tasks. This node leverages the VACE (Video and Control Embedding) framework to encode video frames and associated control masks into a latent space, allowing for advanced manipulation and analysis. By integrating reference images and adjusting strengths, it provides a flexible approach to video encoding, enabling users to fine-tune the influence of different video elements. This node is particularly beneficial for AI artists looking to create complex video effects or transitions, as it allows for precise control over the latent representations of video content.

WanVaceToVideoLatent Input Parameters:

latent_in

This optional parameter allows you to input an existing latent representation to continue processing from a specific point. It is useful for iterative workflows where you want to build upon previously generated latents.

control_video_1

This parameter accepts an image input representing the first control video. It serves as the primary video source for generating the latent representation.

control_masks_1

This parameter takes a mask input associated with the first control video. It helps define areas of interest or influence within the video frames.

vace_reference_1

This parameter allows you to input a reference image for the first VACE control. It provides additional context or guidance for the encoding process.

vace_strength_1

This float parameter controls the strength of the first VACE encoding, with a default value of 1.0. It ranges from 0.0 to 1000.0, allowing you to adjust the influence of the first control video on the latent output.

vace_ref_strength_1

Similar to vace_strength_1, this float parameter adjusts the strength of the reference image's influence on the first VACE control, with the same range and default value.

control_video_2

This parameter accepts a second control video input, providing an additional video source for encoding. It is useful for combining multiple video inputs.

control_masks_2

This parameter takes a second mask input associated with the second control video, allowing for further refinement of the video encoding process.

vace_reference_2

This parameter allows you to input a reference image for the second VACE control, offering additional context for the second video source.

vace_strength_2

This float parameter controls the strength of the second VACE encoding, with a default value of 1.0. It ranges from 0.0 to 1000.0, enabling you to adjust the influence of the second control video.

vace_ref_strength_2

Similar to vace_strength_2, this float parameter adjusts the strength of the reference image's influence on the second VACE control, with the same range and default value.

phantom_images

This parameter accepts an image input for phantom embedding, which can be used to introduce additional visual elements into the latent space.

phantom_mask_value

This float parameter sets the mask value for the phantom embed region, with a default of 1.0 and a range from 0.0 to 1.0. It determines the opacity or influence of the phantom images in the latent representation.

WanVaceToVideoLatent Output Parameters:

positive

This output contains the positive conditioning values, which include the encoded video frames, masks, and strengths. It is used to guide the generation of the final latent representation.

negative

This output contains the negative conditioning values, similar to the positive output, but used for contrasting or balancing the latent encoding process.

out_latent

This output provides the final latent representation, which includes the encoded video frames and any adjustments made based on the input parameters. It is the primary output used for further video processing or analysis.

trim_latent

This output indicates the number of frames trimmed or adjusted during the encoding process, providing insight into the temporal modifications made to the video input.

WanVaceToVideoLatent Usage Tips:

  • Experiment with different vace_strength and vace_ref_strength values to achieve the desired balance between video and reference influences in the latent representation.
  • Utilize the phantom_images and phantom_mask_value parameters to introduce creative visual elements into your video projects, enhancing the artistic output.
  • When working with multiple video inputs, ensure that the control masks are accurately aligned with the video frames to maintain consistency in the latent encoding.

WanVaceToVideoLatent Common Errors and Solutions:

Mismatched Latent Dimensions

  • Explanation: This error occurs when the dimensions of the processed latent do not match the expected output dimensions.
  • Solution: Ensure that the input latents are correctly padded or truncated to match the expected dimensions, as indicated in the node's processing logic.

Invalid Strength Values

  • Explanation: This error arises when the vace_strength or vace_ref_strength values are set outside the allowed range.
  • Solution: Verify that the strength values are within the specified range of 0.0 to 1000.0 and adjust them accordingly.

Missing Control Video or Mask

  • Explanation: This error occurs when a required control video or mask input is not provided.
  • Solution: Ensure that all necessary video and mask inputs are connected to the node before execution.

WanVaceToVideoLatent Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-WanVaceAdvanced
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.