VideoParamHub (2lab)
One place for frames and fps
- frames
- fps
Video workflows are where ComfyUI's control panel aesthetic really falls apart - frame counts and fps settings get buried in sampler and VAE-combine widgets all over the graph. VideoParamHub (2lab) is the same "centralize the stuff you actually edit" idea as the pack's StringHub9, but for the two numbers every video run depends on: frames and fps. One node, both values, wired out to wherever they're consumed.
The pitch is simple: instead of opening three different nodes to change the duration of your clip, you open one. Type the frame count once, the frame rate once, and every downstream consumer gets the same values from the same source. It's the kind of tiny quality-of-life win that matters most when you're iterating on video, where each run is expensive and you want the dials in front of you.
Inputs
frames- a dropdown with two choices: 14 or 25. That's the total frame count of the video. (Why those two? 14 and 25 correspond to the short clips most video models at the time favored - roughly a second at low fps, or a second at 24–25fps. The preset is opinionated, but if you need a different count this node's fixed list is a limitation to know about.)fps- an integer from 1 to 1000, default 5. The playback frame rate. 5fps is the classic "draft preview" value - cheap to render, smooth enough to judge motion - and you'd raise it for a final render.
Outputs
frames- the frame count as an int, wired into your video sampler.fps- the frame rate as an int, wired into the node that assembles the video file (typically a video combine / VAE decode step).
How it works
It's a loader, not a calculator: you pick the values, the node emits them, and every consumer reads from a single source of truth. Change the fps once and every branch of the graph that references it follows along. Nothing is computed or validated - the node trusts you, and so does whatever you feed it.
Installing it
Standard install. ComfyUI Manager → search "comfyUI-tool-2lab" → install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/AI2lab/comfyUI-tool-2lab
Restart ComfyUI. No model downloads, no pip extras.
Gotchas
- Frames is a fixed dropdown, not a free number. 14 or 25, take it or leave it. If your model wants 49 or 81 frames, this hub can't supply them - you'll have to set the frame count elsewhere. That's the single most likely reason you'd skip this node.
- Wrong fps values flow straight through. 1000fps is technically allowed and will make your "video" an unplayable blur. The node won't stop you; sanity-check what you feed it.
- Repo visibility. The pack's GitHub page currently returns 404 - likely made private or renamed - so fresh clones can fail while installed setups keep working. Known quirk, not your error.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| frames | COMBO | 14 | 2 options: 14, 25 |
| fps | INT | 51–1000 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| frames | INT | — |
| fps | INT | — |