ComfyUI > Nodes > ComfyUI-VideoTransition > Video overlay

ComfyUI Node: Video overlay

Class Name

VideoCrossfadeNode

Category
VideoTransition
Author
yichengup (Account age: 774days)
Extension
ComfyUI-VideoTransition
Latest Updated
2025-10-27
Github Stars
0.03K

How to Install ComfyUI-VideoTransition

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

Video overlay Description

Creates seamless video transitions with various crossfade effects using OpenCV and PyTorch.

Video overlay:

The VideoCrossfadeNode is designed to create seamless transitions between two video clips using various blending techniques. This node provides a simple yet effective way to apply crossfade effects, where one video gradually fades out while the other fades in, creating a smooth transition. It supports multiple transition modes, including direct crossfade, fade to black or white, fade to a custom color, additive dissolve, and chromatic dissolve. These options allow you to customize the visual effect to suit your creative needs, making it a versatile tool for video editing and artistic projects. By leveraging OpenCV and PyTorch, the node efficiently processes video frames, ensuring high-quality output with minimal computational overhead.

Video overlay Input Parameters:

frames1

This parameter represents the first set of video frames that will be used in the transition. It is crucial as it determines the starting point of the crossfade effect. The frames should be provided in a format compatible with the node's processing capabilities, typically as a list or array of image data. The quality and resolution of these frames will directly impact the final output.

frames2

This parameter represents the second set of video frames that will be used in the transition. It serves as the endpoint of the crossfade effect. Similar to frames1, these frames should be provided in a compatible format and will influence the quality and resolution of the final video output.

transition_mode

This parameter specifies the type of transition effect to be applied between the two sets of frames. Options include "crossfade," "fade_to_black," "fade_to_white," "fade_to_custom," "additive_dissolve," and "chromatic_dissolve." Each mode offers a unique visual effect, allowing you to tailor the transition to your specific artistic vision.

background_color

This parameter is used when the transition mode involves fading to a custom color. It defines the RGB color value that will be used as the intermediate color during the transition. This allows for creative flexibility in designing unique transition effects.

width

This parameter specifies the width to which the video frames should be resized during processing. It ensures that both sets of frames are of the same dimensions, which is essential for seamless blending. The width should be chosen based on the desired output resolution.

height

Similar to the width parameter, this specifies the height to which the video frames should be resized. Consistent dimensions are necessary for effective blending and to maintain the aspect ratio of the video.

Video overlay Output Parameters:

output_frames

This parameter represents the final set of video frames after the transition effect has been applied. It is the result of blending the two input frame sets according to the specified transition mode and parameters. The output frames can be used for further processing or directly exported as a video file, providing a visually appealing transition effect.

Video overlay Usage Tips:

  • Experiment with different transition modes to find the one that best suits your project's aesthetic. Each mode offers a distinct visual style, from subtle fades to dramatic color shifts.
  • Ensure that the input frames are of high quality and resolution to achieve the best results. Low-quality frames may result in a less polished final output.
  • When using the fade to custom color mode, choose a background color that complements the content of your videos for a more cohesive transition.

Video overlay Common Errors and Solutions:

"Input frames not compatible"

  • Explanation: This error occurs when the input frames are not in a format that the node can process, such as incompatible data types or mismatched dimensions.
  • Solution: Ensure that both sets of input frames are in a compatible format, such as a list or array of image data, and that they have the same dimensions.

"Invalid transition mode"

  • Explanation: This error is triggered when an unsupported transition mode is specified.
  • Solution: Verify that the transition mode parameter is set to one of the supported options: "crossfade," "fade_to_black," "fade_to_white," "fade_to_custom," "additive_dissolve," or "chromatic_dissolve."

"Background color not defined"

  • Explanation: This error occurs when the fade to custom color mode is selected, but no background color is provided.
  • Solution: Ensure that the background_color parameter is set to a valid RGB value when using the fade to custom color transition mode.

Video overlay Related Nodes

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

Video overlay