comfyui-alabo-duration
A drop-in replacement for EmptyLatentImage in AnimateDiff and video workflows, controlled entirely by dropdowns.
comfyui-alabo-duration
A drop-in replacement for EmptyLatentImage in AnimateDiff and video workflows, controlled entirely by dropdowns. Shape, size, and length are all pickable, with nothing buried in a raw pixel field.
Why it exists
In a video graph the latent shape, the frame count, and the frame rate have to line up or the clip comes out the wrong length. This node holds all three in one place and keeps the output duration exact even after RIFE interpolation, so you set the length you want in seconds and get that length back.
Node
Empty Latent (aspect + size + seconds). Outputs LATENT, frames, width, height, render_fps, out_fps.
Controls
- aspect: 9:16, 16:9, 1:1, 4:5, 2:3, 3:2, 2.39:1.
- size: small, medium, large (short side 320, 448, 576).
- duration: 12s, 15s, 20s, 30s, 45s, 60s, or custom.
- fps: render frame rate.
- interp_x: set to your downstream RIFE multiplier so the length stays exact after interpolation. Leave at 1 when not interpolating.
Dimensions snap to a multiple of 8. When interp_x is above 1 the node reduces the rendered frame count so that, after RIFE multiplies it back up and the video node plays it at out_fps, the clip is the requested number of seconds.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/AlaboMPJ/comfyui-alabo-duration
Restart ComfyUI.
License
MIT. </content>