ComfyUI > Nodes > DJZ-Nodes > Video Trails

ComfyUI Node: Video Trails

Class Name

VideoTrails

Category
image/effects
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

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

Enhance video frames with motion-based trail effect for dynamic and artistic touch in video projects.

Video Trails:

The VideoTrails node is designed to enhance video frames by applying a motion-based trail effect, which can add a dynamic and artistic touch to your video projects. This node processes each frame of a video sequence, detecting motion between consecutive frames and creating a trail effect that follows the movement. The trails are generated by blending the current frame with previously accumulated frames, allowing for a smooth and visually appealing transition. This effect is particularly useful for creating a sense of motion blur or emphasizing movement within a scene. By adjusting various parameters, you can control the intensity, persistence, and fade speed of the trails, enabling you to customize the effect to suit your creative vision.

Video Trails Input Parameters:

blur_strength

The blur_strength parameter controls the intensity of the motion blur applied to each frame. A higher value results in a stronger blur effect, which can enhance the sense of motion in the video. The minimum value is 0, which means no blur is applied, and there is no specified maximum value, but it should be set according to the desired effect. The default value is typically set to a moderate level to provide a noticeable yet subtle blur.

motion_threshold

The motion_threshold parameter determines the sensitivity of motion detection between frames. It sets the threshold for detecting changes in pixel values that indicate motion. A lower threshold makes the node more sensitive to small movements, while a higher threshold requires more significant changes to be detected as motion. This parameter is crucial for ensuring that only relevant motion is captured and trails are applied appropriately.

intensity

The intensity parameter affects the strength of the trail effect by controlling how much of the current frame is blended with the accumulated trails. A higher intensity results in more pronounced trails, while a lower intensity creates a subtler effect. This parameter allows you to adjust the visual impact of the trails to match your artistic goals.

persistence

The persistence parameter defines how long the trails remain visible by controlling the blending of accumulated frames. A higher persistence value means that trails will last longer, creating a more extended motion effect, while a lower value causes trails to fade more quickly. This parameter is essential for managing the duration and continuity of the trails.

fade_speed

The fade_speed parameter determines the rate at which existing trails fade over time. A higher fade speed results in trails disappearing more quickly, while a lower fade speed allows them to linger longer. This parameter helps you control the temporal aspect of the trail effect, ensuring it aligns with the desired pacing of your video.

Video Trails Output Parameters:

processed_batch

The processed_batch output parameter is a collection of video frames that have been processed with the trail effect. Each frame in this batch has been enhanced to include the motion-based trails, providing a dynamic and visually engaging result. This output is crucial for further video editing or rendering, as it contains the final visual effect applied to the original video sequence.

Video Trails Usage Tips:

  • Experiment with different blur_strength values to achieve the desired level of motion blur, enhancing the dynamic feel of your video.
  • Adjust the motion_threshold to fine-tune the sensitivity of motion detection, ensuring that only significant movements are highlighted with trails.
  • Use the intensity and persistence parameters to balance the prominence and duration of the trails, creating a cohesive visual effect that complements your video content.

Video Trails Common Errors and Solutions:

"ValueError: operands could not be broadcast together"

  • Explanation: This error occurs when there is a mismatch in the dimensions of the arrays being processed, often due to incorrect input frame sizes.
  • Solution: Ensure that all input frames have consistent dimensions and are correctly pre-processed before applying the VideoTrails node.

"IndexError: index out of bounds"

  • Explanation: This error may arise if the node attempts to access a frame index that does not exist, possibly due to an incorrect batch size.
  • Solution: Verify that the batch size matches the number of frames in your input video sequence and adjust accordingly.

Video Trails Related Nodes

Go back to the extension to check out more related nodes.
DJZ-Nodes
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 Playground, enabling artists to harness the latest AI tools to create incredible art.