ComfyUI > Nodes > ComfyUI Wan VACE Prep > 🪐 VACE Batch Context

ComfyUI Node: 🪐 VACE Batch Context

Class Name

WanVACEBatchContext

Category
video/VACE
Author
stuttlepress (Account age: 597days)
Extension
ComfyUI Wan VACE Prep
Latest Updated
2026-03-31
Github Stars
0.03K

How to Install ComfyUI Wan VACE Prep

Install this extension via the ComfyUI Manager by searching for ComfyUI Wan VACE Prep
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Wan VACE Prep 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

🪐 VACE Batch Context Description

Facilitates batch processing and seamless transitions in VACE for multi-video sequences.

🪐 VACE Batch Context:

The WanVACEBatchContext node is designed to facilitate batch processing of video sequences within the VACE (Video Analysis and Content Extraction) framework. Its primary purpose is to manage the context and transitions between multiple video files, ensuring seamless integration and processing. This node is particularly beneficial for handling edge cases in multi-video processing, such as the first and last iterations, and supports loop transitions for continuous video sequences. By automating the management of video file paths and processing order, WanVACEBatchContext simplifies the workflow for AI artists, allowing them to focus on creative aspects rather than technical details.

🪐 VACE Batch Context Input Parameters:

input_list

This parameter represents the list of video files to be processed in the batch. It is crucial for determining the sequence and order of video processing. The list should contain the filenames or paths of the videos you wish to include in the batch operation. There are no specific minimum or maximum values, but the list should be non-empty to ensure proper functionality.

input_dir

The input_dir parameter specifies the directory where the input video files are located. This is used to construct the full file paths for each video in the input_list. If not provided, the node assumes that the filenames in input_list are already complete paths. This parameter is optional but recommended for organizing and managing video files efficiently.

make_loop

This boolean parameter determines whether the batch processing should include a loop transition, connecting the last video back to the first. When set to True, it enables the creation of a seamless loop, which is useful for applications requiring continuous playback. The default value is False, meaning no loop transition is applied unless explicitly specified.

debug

The debug parameter is a boolean flag that, when enabled, provides detailed logging and output during the batch processing. This can be helpful for troubleshooting and understanding the internal workings of the node. By default, this parameter is set to False to avoid cluttering the output with debug information unless needed.

🪐 VACE Batch Context Output Parameters:

work_dir

This output provides the directory path where the processed video files and related work files are stored. It is essential for accessing the results of the batch processing and any intermediate files generated during the operation.

workfile_prefix

The workfile_prefix output is a string that serves as a prefix for naming the work files generated during the batch processing. It helps in organizing and identifying files related to a specific batch operation.

video_1_filename

This output parameter gives the full path of the first video file in the current processing pair. It is crucial for understanding which video is being processed at any given time.

video_2_filename

Similar to video_1_filename, this output provides the full path of the second video file in the current processing pair. It is used to determine the subsequent video in the sequence.

is_first

The is_first output is a boolean indicating whether the current processing iteration is the first in the batch. This information is useful for handling specific processing logic that may be required at the start of a batch.

is_last

The is_last output is a boolean that signifies whether the current processing iteration is the last in the batch. It is important for managing end-of-batch operations and ensuring proper closure of the batch process.

assemble_video

This boolean output indicates whether the current iteration should assemble the final video output. It is particularly relevant when creating loop transitions or finalizing the batch processing.

🪐 VACE Batch Context Usage Tips:

  • Ensure that the input_list is correctly populated with the video files you intend to process, as this directly affects the sequence and outcome of the batch operation.
  • Utilize the make_loop parameter to create seamless video loops, which can be particularly useful for installations or applications requiring continuous playback.
  • Enable the debug parameter if you encounter issues or need to understand the processing flow better, as it provides detailed insights into each step of the batch operation.

🪐 VACE Batch Context Common Errors and Solutions:

"Input list is empty"

  • Explanation: This error occurs when the input_list parameter is not provided or is empty, preventing the node from processing any videos.
  • Solution: Ensure that the input_list contains at least one video file and is correctly specified before running the batch process.

"Invalid input directory"

  • Explanation: This error indicates that the input_dir parameter is set to a directory that does not exist or is inaccessible.
  • Solution: Verify that the input_dir path is correct and that the directory is accessible. Adjust the path if necessary to point to the correct location of your video files.

"Loop transition failed"

  • Explanation: This error may occur if the make_loop parameter is enabled, but the node cannot create a seamless transition between the last and first videos.
  • Solution: Check the input_list and ensure that the videos are compatible for looping. Consider adjusting the video content or sequence to facilitate a smoother transition.

🪐 VACE Batch Context Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Wan VACE Prep
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.

🪐 VACE Batch Context