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_audioparameter is a well-prepared audio timeline to achieve the best synchronization and integration with your video content. - Utilize the
context_lengthparameter to maintain visual continuity by preserving a video prefix, especially when working with complex audio-visual projects. - Adjust the
clip_start_secondsto 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_latentandsource_framesare connected simultaneously, which is not allowed. - Solution: Disconnect one of the inputs, either
source_latentorsource_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_audioparameter is not recognized as a valid audio input. - Solution: Ensure that the
master_audioinput 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.
