Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-MAINodes > H3 Trim (alpha)

ComfyUI Node: H3 Trim (alpha)

Class Name

H3Trim

Category
MAINodes/alpha
Author
matlowai (Account age: 1004days)
Extension
ComfyUI-MAINodes
Latest Updated
2026-08-26
Github Stars
0.11K

How to Install ComfyUI-MAINodes

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

H3 Trim (alpha) Description

Refine video sequences by adjusting frame count for synchronization within the H3 framework.

H3 Trim (alpha):

The H3Trim node is designed to refine video sequences by trimming or adjusting the number of frames to align with specific requirements, particularly in the context of the H3 framework. This node is essential for ensuring that video clips conform to the expected frame count, which is crucial for maintaining synchronization with audio and other media elements. By trimming excess frames or padding where necessary, H3Trim helps prevent issues such as repeated frames or unsynchronized audio, which can occur when video clips do not meet the required frame specifications. This node is particularly beneficial for artists and creators who need to ensure their video content is processed accurately and efficiently, without introducing unwanted artifacts or errors.

H3 Trim (alpha) Input Parameters:

images

The images parameter represents the video frames that are to be processed. It is a crucial input as it contains the sequence of frames that will be trimmed or adjusted according to the plan. The number of frames in this input directly affects the trimming process, as the node will determine how many frames to keep or discard based on the provided plan.

plan

The plan parameter is a JSON string that outlines the trimming strategy, including the number of frames to handle and the new frames to be retained. This plan dictates how the node will process the input frames, ensuring that the output aligns with the desired frame count and structure. It is essential for guiding the trimming process and ensuring the output meets specific requirements.

global_start

The global_start parameter indicates the starting point in the global timeline for the trimmed frames. This parameter is important for maintaining synchronization with other media elements, such as audio, by providing a reference point for the trimmed sequence within the larger context of the project.

audio (optional)

The audio parameter, if provided, contains the audio data associated with the video frames. This input is used to ensure that the audio is trimmed or adjusted in tandem with the video frames, maintaining synchronization between the two media types. If audio is not provided, the node will only process the video frames.

H3 Trim (alpha) Output Parameters:

keep

The keep output contains the sequence of frames that have been retained after the trimming process. This output is crucial as it represents the final video content that aligns with the specified plan, ensuring that the video meets the required frame count and structure.

ta

The ta output, if audio was provided, contains the trimmed audio data that corresponds to the retained video frames. This output ensures that the audio remains synchronized with the video, preventing issues such as audio drift or misalignment.

global_end

The global_end output indicates the endpoint in the global timeline for the trimmed frames. This output is important for maintaining synchronization with other media elements and provides a reference point for the end of the trimmed sequence within the larger context of the project.

gspan

The gspan output is a JSON string that represents the span of the trimmed frames in the global timeline. This output provides detailed information about the timing and duration of the trimmed sequence, which is useful for further processing or analysis.

text

The text output is a descriptive string that summarizes the trimming process, including details about the number of frames dropped, retained, and any warnings generated during the process. This output is useful for logging and understanding the actions taken by the node.

prefix

The prefix output contains the sequence of frames that were dropped from the beginning of the input sequence. This output is useful for understanding what content was removed during the trimming process.

pa

The pa output, if audio was provided, contains the audio data that corresponds to the dropped prefix frames. This output is useful for understanding what audio content was removed during the trimming process.

H3 Trim (alpha) Usage Tips:

  • Ensure that the plan parameter is accurately defined to match the desired frame count and structure, as this will directly impact the trimming process and the final output.
  • When working with audio, always provide the audio parameter to maintain synchronization between video and audio, preventing issues such as audio drift or misalignment.
  • Use the text output to review the trimming process and identify any warnings or issues that may have occurred, allowing for adjustments to be made if necessary.

H3 Trim (alpha) Common Errors and Solutions:

"recovered segment has {n} frames, plan expected {h + new}; keeping what exists after the prefix"

  • Explanation: This warning indicates that the number of frames in the input does not match the expected count as defined in the plan. The node will keep as many frames as possible after the prefix.
  • Solution: Verify the plan parameter to ensure it accurately reflects the desired frame count and structure. Adjust the input frames or plan as necessary to align with the expected count.

Audio synchronization issues

  • Explanation: If the audio is not provided or improperly synchronized, it can lead to misalignment with the video frames.
  • Solution: Always provide the audio parameter when working with video and audio together. Ensure that the audio data is correctly aligned with the video frames before processing.

H3 Trim (alpha) Related Nodes

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

H3 Trim (alpha)