Before you start

ComfyUI’s December 1 engineering post walks through its Video Deflicker node. Start on one short shot with visible brightness or texture flicker.

What you’ll make
A side-by-side comparison and a corrected MP4 at the original frame rate.
What you’ll need
ComfyUI v0.46 or newer, a compatible machine with room for the optical-flow weights, and a short clip you own.

Step by step

  1. Bring in the clip and reference

    Copy a 3–5 second clip into the local ComfyUI input folder. If you still have the steady, pre-upscale clip, keep that as an optional guide. Make sure the two clips show the same moment and camera motion.

  2. Load the optical-flow model

    Get the RAFT weights linked from the ComfyUI engineering post. Put the safetensors file under models/optical_flow and select it in Load Optical Flow Model. Restart or refresh the local app if the file is not listed.

  3. Connect and run one pass

    Extract the processed clip’s frames with Get Video Components. Connect those images and the loaded model to Video Deflicker. Leave the default bidirectional mode for the first pass; attach frames from the steady reference to guide if you have them.

  4. Rebuild and review the export

    Pass the corrected frames to Create Video with the source FPS and, if present, the original audio; then connect Save Video. Compare the same frames before and after, especially moving hands, hair and fine patterns. Reduce strength if edges smear; try forward mode only as a speed/quality trade-off.

Sign-in & permissions

This workflow works in local ComfyUI without Comfy Cloud or partner-node credits. It downloads the public model weights. No need to upload the clip or launch a public server.

These are stock nodes on supported releases, not a custom extension. Use the author’s VOID template only as an optional route to getting the optical-flow weights.

Prompt for your agent

Use with: Coding agent with a local ComfyUI instance or browser access

Copy the whole prompt into a supported agent. After any manual step, tell the same agent to continue from that step.

Use a clean project folder for this workflow: Fix frame-to-frame flicker in ComfyUI. Supported setup: Coding agent with a local ComfyUI instance or browser access. Start from the original documentation: https://blog.comfy.org/p/the-little-things-that-shipped-in-8a1.

1. SET UP
Check ComfyUI v0.46+ and download the official optical-flow weights only after asking. Use models/optical_flow and the built-in nodes named below. Do not install custom nodes or use a cloud backend.

2. PAUSE FOR ME IF NEEDED
For a host install, sign-in, permission screen, or model download that needs my consent, stop and tell me the exact app, control and what will be authorized. Do not enter passwords, OTPs or secrets in chat. Resume after I confirm.

3. BUILD THE FIRST RESULT
Use local ComfyUI v0.46 or later. Follow https://blog.comfy.org/p/the-little-things-that-shipped-in-8a1 to build a graph for my owned clip: Load Video → Get Video Components → Video Deflicker with Load Optical Flow Model → Create Video → Save Video. Match the original frame rate and pass through original audio if present. Use an optional clean clip only if I provide it. Ask before downloading weights. Save an editable workflow and compare detail and flicker at matching frames. Do not enable cloud providers or upload.

4. CHECK THE RESULT
Compare matching frames before and after the correction and inspect source FPS/audio in the output. Give me the actual file paths and anything that still needs a manual action. Do not publish or make a purchase.

Sources