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 · Master Audio + Video Prefix

ComfyUI Node: MiniMax H3 Masking · Master Audio + Video Prefix

Class Name

MiniMaxH3ContexMasterAudioMaskedAV

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 · Master Audio + Video Prefix Description

Enhances audio-visual projects with precise master-audio intervals and timeline-audio masking for seamless integration.

MiniMax H3 Masking · Master Audio + Video Prefix:

The MiniMaxH3ContexMasterAudioMaskedAV node is designed to enhance audio-visual projects by integrating precise master-audio intervals into a target audio stream, while optionally preserving a video prefix. This node specializes in timeline-audio masking, allowing you to replace the target audio stream with an exact segment from a master audio track, such as music, dialogue, or sound effects. It ensures that the audio is protected throughout the raw clip, providing a seamless integration of audio and video elements. The node is particularly beneficial for projects requiring precise audio synchronization and continuity, as it can also protect the final native H3 run from preceding sampled AV latent or legacy decoded-video paths. This functionality is adapted from advanced implementations, ensuring compatibility and flexibility in various creative workflows.

MiniMax H3 Masking · Master Audio + Video Prefix Input Parameters:

latent

This parameter represents the target audio-visual latent from the stock MiniMax H3 conditioning node. It is crucial for defining the audio-visual context that the node will work with, ensuring that the master audio is accurately integrated into the existing AV framework.

audio_vae

The MiniMax H3 audio VAE is used to encode the exact master-audio slice into the target latent. This parameter is essential for converting the master audio into a format that can be seamlessly integrated into the target audio stream, maintaining audio quality and synchronization.

master_audio

This parameter is the full prerecorded audio timeline, which can include music, dialogue, narration, or effects. The node uses this to insert the exact current interval into the target with the selected denoise mask, ensuring precise audio placement and masking.

clip_start_seconds

This float parameter specifies the start of the raw H3 clip on the master-audio timeline. It allows you to define the exact point on the timeline where the audio clip should begin, with a default value of 0.0, and a range from 0.0 to 99999.0 seconds.

context_length

An integer parameter that defines the previous-video prefix request. It uses native runs such as 5, 22, 39, 56, etc., to determine the length of the video prefix. A value of 0 disables video prefixing when neither source input is connected, with a default value of 39 and a range from 0 to 9999.

MiniMax H3 Masking · Master Audio + Video Prefix Output Parameters:

latent

This output represents the sampler target with the exact master audio, its selected denoise mask, and an optional protected previous-video prefix. It is crucial for ensuring that the audio and video elements are correctly synchronized and integrated.

trim_frames

This integer output indicates the actual protected visual prefix length, specifying how many decoded frames should be trimmed. It helps in maintaining the visual continuity and synchronization with the audio.

clip_audio

This output provides the exact master-audio interval represented by the raw target. It ensures that the audio segment is accurately captured and integrated into the project, maintaining the intended audio quality and timing.

MiniMax H3 Masking · Master Audio + Video Prefix Usage Tips:

  • Ensure that the master_audio parameter is a well-prepared audio timeline to achieve the best synchronization and integration with your video content.
  • Utilize the context_length parameter to maintain visual continuity by preserving a video prefix, especially when working with complex audio-visual projects.
  • Adjust the clip_start_seconds to precisely align the audio clip with the desired point in your video timeline, ensuring seamless transitions and synchronization.

MiniMax H3 Masking · Master Audio + Video Prefix Common Errors and Solutions:

"h3_master_audio_mask: connect either source_latent or source_frames, not both."

  • Explanation: This error occurs when both source_latent and source_frames are connected simultaneously, which is not allowed.
  • Solution: Disconnect one of the inputs, either source_latent or source_frames, to resolve the conflict and proceed with the node's operation.

"h3_master_audio_mask: master_audio is not a Comfy AUDIO."

  • Explanation: This error indicates that the master_audio parameter is not recognized as a valid audio input.
  • Solution: Ensure that the master_audio input is correctly formatted and recognized as a Comfy AUDIO type to proceed with the node's processing.

"h3_master_audio_mask: audio VAE returned [unexpected shape]; expected [B,C,2,T]."

  • Explanation: This error suggests that the audio VAE returned an output with an unexpected shape, which does not match the expected format.
  • Solution: Verify the configuration and compatibility of the audio VAE to ensure it outputs the expected shape, allowing the node to process the audio correctly.

MiniMax H3 Masking · Master Audio + Video Prefix 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 · Master Audio + Video Prefix