Nodes/ComfyUI-SA-Nodes-QQ/Wan Video Speed (QQ)
ComfyUI Node

Wan Video Speed (QQ)

Resample any clip to an exact frame count — the boring node you'll keep using

By siraxe·Created 11 months ago·Updated 2 days ago· 72
Wan Video Speed (QQ)
  • video
  • video
  • frame_count
output_frames33

WanVideoSpeed does exactly one thing: it takes a video and resamples it so it comes out at the frame count you specify. Nothing clever, no motion interpolation magic, no model involved - but "boring" is the point. In video workflows you are constantly fighting frame-count mismatches: your I2V clip came back at 81 frames, your reference is 97, your audio track needs exactly 33, and the node that wants to combine them just doesn't care about your problems. This is the shim.

The interface is two fields. video (IMAGE) goes in, and output_frames (1–10000, default 33) is the target length - the tooltip says it plainly: "Desired number of frames for the output video. Adjusts speed to match." Set 81 and it's a no-op on an 81-frame clip; set 40 on a 97-frame clip and the whole thing plays ~2.4x faster. It outputs video plus frame_count (INT) so downstream nodes know what they got.

When you'll actually reach for it

  • Syncing audio to visuals. If you're joining clips with a music track, the last thing you want is a 4-frame drift. Snap the video to the audio's frame count and the seam disappears.
  • Normalizing clip lengths before a merge. Feed two clips of different lengths into WanVideoMerge with matching output_frames and the transitions land where you expect instead of wherever the longer clip ends up.
  • Matching a loop. Loops want a whole number of cycles; resample to a frame count that divides cleanly and the wrap point stays stable.
  • Preview speed. Blast an 81-frame render to 20 frames to eyeball the motion before committing GPU time to a full pass.

The honest limitation: resampling is frame-skipping/duplicating, not optical-flow interpolation. Slow the video down and motion looks choppy - each input frame just gets repeated. If you need smooth slow-mo, you want a real interpolation step (something like RIFE) after this node, not more patience with the same frames. And since it operates on decoded frames, it sits after VAE decode.

Installing it

Part of siraxe/ComfyUI-WanVideoWrapper_QQ. ComfyUI Manager → search WanVideoWrapper_QQ (or SA-Nodes-QQ), or:

cd ComfyUI/custom_nodes
git clone https://github.com/siraxe/ComfyUI-WanVideoWrapper_QQ.git

Restart ComfyUI. No extra dependencies.

Gotchas

  • Resampling the low-res pass too aggressively compounds quality loss. If you're stretching a video, do it at a higher resolution and then downscale, not the reverse.
  • This node doesn't resample audio - it only touches the image batch. Keep your AUDIO on its own path if you're also syncing sound.
  • Pack note: the repo renamed to ComfyUI-SA-Nodes-QQ in v1.3.4; delete any stale wanwrapper_qq folder in custom_nodes if old workflows reference it.
CategoryWanVideoWrapper_QQ

Inputs (2)

NameTypeDefaultDescription
videoIMAGE
output_framesINT331–10000Desired number of frames for the output video. Adjusts speed to match.

Outputs (2)

NameTypeDescription
videoIMAGE
frame_countINT