ComfyUI > Nodes > ComfyUI-AV-Handles

ComfyUI Extension: ComfyUI-AV-Handles

Repo Name

ComfyUI-AV-Handles

Author
pizurny (Account age: 1228 days)
Nodes
View all nodes(2)
Latest Updated
2025-11-08
Github Stars
0.02K

How to Install ComfyUI-AV-Handles

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

ComfyUI-AV-Handles Description

ComfyUI-AV-Handles manages audio/video handles in ComfyUI workflows, enabling the addition and removal of stabilization frames with synchronized audio for video diffusion models.

ComfyUI-AV-Handles Introduction

ComfyUI-AV-Handles is an extension designed to enhance the workflow of AI artists working with video diffusion models in ComfyUI. This extension provides a seamless way to manage audio and video synchronization by adding and removing stabilization frames, known as "handles," to your video sequences. These handles help ensure that your video diffusion models, such as WAN S2V and WAN Fun Control, produce high-quality outputs by allowing the models to stabilize before processing the main content. By using ComfyUI-AV-Handles, you can maintain perfect audio-video alignment, trim unnecessary frames, and ensure compatibility with WAN models, ultimately improving the efficiency and quality of your creative projects.

How ComfyUI-AV-Handles Works

At its core, ComfyUI-AV-Handles operates by manipulating the frames of your video sequences. When you start a video processing task, the extension adds extra frames, called "handles," at the beginning of your sequence. These handles are simply repetitions of the first frame, which give the video diffusion models time to stabilize. Simultaneously, the extension adds silence to the audio track to keep it in sync with the video. Once the processing is complete, the extension trims these handles, restoring the video to its original length while maintaining perfect synchronization with the audio.

Think of it like giving a runner a few extra steps to get up to speed before starting a race. The handles provide the necessary "warm-up" for the video models, ensuring they perform at their best from the very first frame.

ComfyUI-AV-Handles Features

AV Handles Add

This feature allows you to add handle frames to your video sequence. You can specify the number of frames to add, and the extension will repeat the first frame of your video to create these handles. It also adds silence to the audio track to maintain synchronization.

  • Required Inputs:
  • handle_frames (INT): Number of frames to add. Default is 8, with a range of 0-100. Set to 0 with round_to_wan enabled for automatic WAN mode.
  • Optional Inputs:
  • images (IMAGE): Input image batch (optional for audio-only workflows).
  • audio (AUDIO): Audio track to synchronize.
  • round_to_wan (BOOL): Adjusts frame count to be compatible with WAN models (4n+1 pattern).
  • manual_fps (FLOAT): Overrides automatic FPS detection. Default is 0, with a range of 0-120.
  • Outputs: images, audio, total_frames, handles_added, info

AV Handles Trim

This feature removes the handle frames and the corresponding silence from the beginning of your video and audio tracks, restoring them to their original state.

  • Required Inputs:
  • handle_frames (INT): Number of frames to remove. Default is 8, with a range of 0-100.
  • Optional Inputs:
  • images (IMAGE): Image batch with handles (optional for audio-only workflows).
  • audio (AUDIO): Audio track to trim.
  • manual_fps (FLOAT): Overrides automatic FPS detection. Default is 0, with a range of 0-120.
  • Outputs: images, audio, remaining_frames, info

ComfyUI-AV-Handles Models

ComfyUI-AV-Handles is designed to work seamlessly with WAN models, which require specific frame counts for optimal performance. The extension automatically adjusts the frame count to match the 4n+1 pattern required by WAN models, ensuring compatibility and high-quality output.

Troubleshooting ComfyUI-AV-Handles

Here are some common issues you might encounter while using ComfyUI-AV-Handles, along with their solutions:

  • Audio out of sync: Ensure that the same handle_frames and manual_fps settings are used in both the Add and Trim nodes.
  • "Cannot trim X frames" error: Verify that the handle count matches what was added initially.
  • Wrong output frame count: Check if WAN rounding is enabled and review the info output for details.
  • Audio is None: This is expected for image-only workflows, as audio is optional.
  • Import error: Ensure that the folder structure is correct, with nodes located in the nodes/ subfolder.
  • FPS detection issues: Use manual_fps to override automatic detection if needed. Pro Tips:
  • Always check the info output string for detailed processing information.
  • Console output provides insights into detected FPS and audio processing details.
  • For audio-only workflows, always set manual_fps to your target framerate.

Learn More about ComfyUI-AV-Handles

To further explore the capabilities of ComfyUI-AV-Handles and enhance your creative projects, consider visiting community forums and tutorials where you can connect with other AI artists and share insights. Engaging with the community can provide valuable support and inspiration as you work with this extension.

ComfyUI-AV-Handles Related 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 Models, enabling artists to harness the latest AI tools to create incredible art.