Nodes/ComfyUI-rogala/LtxResolutionSelector
ComfyUI Node

LtxResolutionSelector

## LTX Resolution Selector Selects the correct **input resolution** and **frame count** for LTX Video models. Supports Dev mode and Distilled upscale modes (x1.5 and x2). --- ### Inputs | Pin | Default | Description | |---|---|---| | `mode` | Dev (no upscale) | Render mode — see table below. | | `dev_target` | 960x544 | Target resolution for Dev mode (12 options). | | `upscale_target` | 1920x1080 | Target resolution for Distilled modes (6 options). | | `fps` | 24.0 | Frames per second (1–120). Passed through to output. | | `duration_sec` | 5 | Clip duration in seconds (1–300). | **mode options:** | Value | Description | |---|---| | `Dev (no upscale)` | Standard LTX Dev sizes, rounded UP to nearest multiple of 32. | | `x1.5 Distilled` | Returns input size needed to reach the target after x1.5 upscale. | | `x2 Distilled` | Returns input size needed to reach the target after x2 upscale. | ### Outputs | Pin | Type | Description | |---|---|---| | `width` | INT | Input width in pixels (multiple of 32). | | `height` | INT | Input height in pixels (multiple of 32). | | `length` | INT | Frame count: `1 + 8 x round(fps x sec / 8)`. | | `fps` | FLOAT | Passthrough of the fps input. | ### Example To render a 5-second clip at 1920x1080 using x2 Distilled: - `mode` = `x2 Distilled` - `upscale_target` = `1920x1080 (Landscape)` - `fps` = 24, `duration_sec` = 5 - Node outputs: `width=960, height=544, length=121, fps=24`

By Rogala·Created 5 months ago·Updated 4 months ago· 19
LtxResolutionSelector
    • width
    • height
    • length
    • fps
    modeDev (no upscale)
    dev_target960x544 (Landscape)
    upscale_target1920x1080 (Landscape)
    fps24.00
    duration_sec5
    Categoryrogala/Video

    Inputs (5)

    NameTypeDefaultDescription
    modeCOMBODev (no upscale)Rendering mode: Dev uses standard sizes; Distilled modes return the correct input size for the chosen upscale factor.
    dev_targetCOMBO960x544 (Landscape)Target resolution for Dev (no upscale) mode.
    upscale_targetCOMBO1920x1080 (Landscape)Desired output resolution for x1.5 or x2 Distilled mode.
    fpsFLOAT24.001–120Frames per second — used to calculate frame count and passed through to output.
    duration_secINT51–300Clip duration in seconds — used to calculate frame count.

    Outputs (4)

    NameTypeDescription
    widthINT
    heightINT
    lengthINT
    fpsFLOAT