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-MiniMax-H3-LongMedia > MiniMax H3 • Replace Stream

ComfyUI Node: MiniMax H3 • Replace Stream

Class Name

MiniMaxH3LatentLabReplaceStream

Category
MiniMax H3/LongMedia/Streams
Author
vizart-vj (Account age: 2338days)
Extension
ComfyUI-MiniMax-H3-LongMedia
Latest Updated
2026-08-12
Github Stars
0.02K

How to Install ComfyUI-MiniMax-H3-LongMedia

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

Facilitates seamless replacement of audio-visual streams while preserving integrity and quality.

MiniMax H3 • Replace Stream:

The MiniMaxH3LatentLabReplaceStream node is designed to facilitate the replacement of one stream within an audio-visual (AV) latent structure while preserving the integrity of the other stream and its associated mask. This node is particularly useful in scenarios where you need to update either the video or audio component of a media file without affecting the other. By leveraging this node, you can seamlessly integrate new content into existing media, ensuring that the transition is smooth and the quality is maintained. The node's primary function is to manage the replacement process, taking into account factors such as fit mode and alignment, to ensure that the new stream fits well with the existing structure. This capability is essential for tasks that require precise control over media content, such as video editing, audio dubbing, or any application where media streams need to be dynamically updated.

MiniMax H3 • Replace Stream Input Parameters:

av_latent

The av_latent parameter represents the original audio-visual latent structure that contains both the video and audio streams. This parameter is crucial as it serves as the base structure into which the new stream will be integrated. The integrity of this latent structure is maintained throughout the replacement process, ensuring that only the specified stream is altered while the other remains unchanged.

replacement_latent

The replacement_latent parameter is the new latent structure that will replace the specified stream within the av_latent. This parameter must be carefully prepared to match the characteristics of the stream it is replacing, ensuring a seamless integration. The quality and compatibility of this latent structure directly impact the final output.

kind

The kind parameter specifies the type of stream to be replaced, either video or audio. This parameter is critical as it determines which component of the av_latent will be updated with the replacement_latent. Selecting the correct kind ensures that the intended stream is replaced without affecting the other.

fit_mode

The fit_mode parameter dictates how the replacement stream should be adjusted to fit the existing structure. Options include strict and crop_pad, which control whether the replacement should strictly adhere to the original dimensions or be cropped or padded to fit. This parameter is essential for maintaining the visual or auditory coherence of the media.

alignment

The alignment parameter determines how the replacement stream should be aligned within the existing structure. Options include start, end, and center, which specify the positioning of the new stream relative to the original. Proper alignment is crucial for ensuring that the replacement stream synchronizes correctly with the remaining content.

denoise

The denoise parameter controls the level of noise reduction applied to the replacement stream, with a range from 0.0 to 1.0. A higher value results in more aggressive noise reduction, which can enhance the clarity of the stream but may also affect its naturalness. This parameter allows for fine-tuning the balance between noise reduction and stream fidelity.

nested_factory

The nested_factory parameter is a function or method used to create nested tensor structures for the output. This parameter is important for ensuring that the final output maintains the necessary structure and format for further processing or integration into other systems.

MiniMax H3 • Replace Stream Output Parameters:

av_latent

The av_latent output parameter is the modified audio-visual latent structure that contains the updated stream. This parameter is the result of the replacement process, reflecting the integration of the new stream while preserving the integrity of the other. The output is ready for further processing or use in applications that require updated media content.

MiniMax H3 • Replace Stream Usage Tips:

  • Ensure that the replacement_latent is prepared to match the dimensions and characteristics of the stream it is replacing to avoid compatibility issues.
  • Use the fit_mode and alignment parameters to control how the replacement stream is integrated, ensuring that it fits well with the existing structure and maintains synchronization.
  • Adjust the denoise parameter carefully to balance noise reduction with the naturalness of the stream, especially in audio applications where clarity is crucial.

MiniMax H3 • Replace Stream Common Errors and Solutions:

ValueError: Denoise must be in the [0, 1] range.

  • Explanation: This error occurs when the denoise parameter is set to a value outside the acceptable range of 0.0 to 1.0.
  • Solution: Ensure that the denoise value is within the specified range by adjusting it to a valid number between 0.0 and 1.0.

ValueError: Unknown stream kind: <kind>

  • Explanation: This error is raised when the kind parameter is set to a value other than video or audio.
  • Solution: Verify that the kind parameter is correctly set to either video or audio to specify the stream type to be replaced.

MiniMax H3 • Replace Stream Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-MiniMax-H3-LongMedia
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 • Replace Stream