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 > MiniMax H3 Context Loop > MiniMax H3 Masking · Trim Source AV

ComfyUI Node: MiniMax H3 Masking · Trim Source AV

Class Name

MiniMaxH3ContexTrimSourceAV

Category
conditioning/minimax/context_loop/masking
Author
ethanfel (Account age: 3434days)
Extension
MiniMax H3 Context Loop
Latest Updated
2026-10-06
Github Stars
0.51K

How to Install MiniMax H3 Context Loop

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

MiniMax H3 Masking · Trim Source AV Description

Efficiently trims video and audio data for H3 format synchronization and compatibility, providing detailed feedback on the process.

MiniMax H3 Masking · Trim Source AV:

The MiniMaxH3ContexTrimSourceAV node is designed to efficiently trim video and audio data to ensure compatibility with the H3 video format, which operates at a specific frame rate. This node is particularly useful in scenarios where you need to synchronize video frames with audio samples, ensuring that both streams are aligned and correctly formatted for further processing or playback. By trimming the input data to match the required H3 frame count, this node helps maintain the integrity of the media content, preventing issues such as desynchronization or data overflow. The node also provides detailed feedback on the trimming process, including the number of frames and audio samples retained or dropped, which aids in understanding the impact of the trimming operation on the original media content.

MiniMax H3 Masking · Trim Source AV Input Parameters:

frames

The frames parameter expects a 4-dimensional tensor representing the video data in the format [T, H, W, C], where T is the number of frames, H is the height, W is the width, and C is the number of color channels. This parameter is crucial as it determines the video content that will be trimmed to fit the H3 format. The node will raise an error if the input does not conform to this expected format, ensuring that only valid video data is processed.

audio

The audio parameter is optional and represents the audio data associated with the video frames. It is expected to be a dictionary containing at least the waveform and sample_rate keys. The waveform should be a tensor representing the audio samples, while sample_rate indicates the number of samples per second. This parameter allows the node to trim the audio to match the length of the trimmed video frames, ensuring synchronization between the two media streams.

MiniMax H3 Masking · Trim Source AV Output Parameters:

trimmed_frames

The trimmed_frames output is a tensor containing the video frames that have been trimmed to match the H3 format requirements. This output ensures that the video data is correctly formatted and ready for further processing or playback, maintaining the desired frame rate and synchronization with the audio.

trimmed_audio

The trimmed_audio output is a dictionary containing the trimmed audio data, including the waveform and sample_rate. This output ensures that the audio is synchronized with the trimmed video frames, providing a seamless media experience. If no audio is provided, this output will indicate that no audio is connected.

h3_length

The h3_length output is an integer representing the number of frames retained after trimming. This value is crucial for understanding the extent of the trimming operation and ensuring that the video data conforms to the H3 format requirements.

info

The info output is a string providing detailed feedback on the trimming operation, including the number of frames and audio samples retained or dropped, the duration of the trimmed video, and the status of the audio synchronization. This information is valuable for assessing the impact of the trimming process and ensuring that the media content is correctly formatted.

MiniMax H3 Masking · Trim Source AV Usage Tips:

  • Ensure that the input video frames are in the correct format [T, H, W, C] to avoid errors during processing.
  • If audio synchronization is important, provide the audio data along with the video frames to ensure both streams are trimmed and aligned correctly.
  • Use the info output to verify the results of the trimming operation and make any necessary adjustments to the input data.

MiniMax H3 Masking · Trim Source AV Common Errors and Solutions:

H3 source AV trim expects IMAGE [T,H,W,C], got <shape>.

  • Explanation: This error occurs when the input video frames do not match the expected 4-dimensional tensor format [T, H, W, C].
  • Solution: Ensure that the input video data is correctly formatted as a 4-dimensional tensor with the appropriate dimensions for frames, height, width, and color channels.

Audio data is shorter than expected; no silence added.

  • Explanation: This message indicates that the provided audio data is shorter than the expected length after trimming, and no additional silence has been added to compensate.
  • Solution: Verify the length of the input audio data and consider adjusting it to match the expected duration of the trimmed video frames, or accept the shorter audio length if it meets your requirements.

MiniMax H3 Masking · Trim Source AV Related Nodes

Go back to the extension to check out more related nodes.
MiniMax H3 Context Loop
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.

MiniMax H3 Masking · Trim Source AV