Nodes/ComfyUi-MpiNodes/Mpi H3 Length
ComfyUI Node

Mpi H3 Length

Convert a wanted duration into a valid MiniMax H3 frame count. H3 only generates n % 17 == 5 frames at 24 fps, so exact whole seconds are mostly impossible - 8 s is the shortest one that lands. Wire `frames` into the H3 node's `length`, and show `seconds` in the UI instead of what was asked for. `in_trained_range` is false outside 124-362 frames (~5.2-15.1 s), where the model still runs but was not trained.

By MadPonyInteractive·Created 10 months ago·Updated 3 days ago· 2
Mpi H3 Length
    • frames
    • seconds
    • in_trained_range
    seconds5.0
    CategoryMpiNodes/Utils

    Inputs (1)

    NameTypeDefaultDescription
    secondsFLOAT5.00.2–150Wanted duration. H3 can only land on a 17k+5 frame grid at 24 fps, so the `seconds` output is what you will actually get.

    Outputs (3)

    NameTypeDescription
    framesINT
    secondsFLOAT
    in_trained_rangeBOOLEAN