Nodes/radiance/HDR Flicker Report (RUDRA)
ComfyUI Node

HDR Flicker Report (RUDRA)

Did your HDR expansion introduce flicker? Here's the number, in EV

By FXTD-Studios·Created 11 months ago·Updated 9 days ago· 264
HDR Flicker Report (RUDRA)
  • sdr
  • hdr
  • report
  • json_report
  • flicker_ev_max
◄image_spaceLinear (Rec.709)►
◄sdr_transfersRGB►
◄cut_data►
◄cut_threshold0.15►
◄reference_white_nits203►

The failure nobody sees until playback

Pull a single SDR frame into HDR and it looks great. Play the clip and the highlight area pulses - the sky breathes, the chrome on a car shimmers, the lamp flickers in a way that was never in the source. This is the single most common way an HDR conversion gets rejected, and it is nearly invisible in any per-frame review workflow.

HDR Flicker Report is the QC node for exactly that. Feed it the source and the master and it tells you how far the HDR's average exposure moved from one frame to the next beyond what the source already did, in EV. That qualifier is the entire design: a clip that fades to black isn't flicker, and a clip with a strobe light isn't flicker. What it hunts is change the conversion added.

You'd reach for it at the end of a shot, before you commit to a strip - and it pairs directly with HDR Shot Hold, which is the fix.

How it works

Per frame pair it measures the HDR's mean exposure change, subtracts the source's own, and reports the residual. The same operation runs over a 36 × 64 grid so you also get local_flicker_ev - a sky that pulses in the top third while the frame average stays flat shows up in the grid and not in the global number. Frames that start a shot aren't scored, which is correct: a cut is supposed to change exposure.

It's a measuring instrument, not a fixer. Nothing passes through it.

Inputs and outputs

Required: sdr (your source clip as decoded, 0..1 codes), hdr (the master made from it, scene-linear, the same frames) and image_space - scene-linear Rec.709, Rec.2020, ACEScg or AP0. PQ and HLG are refused, which is right; converting to a delivery encoding first would change the measurement.

Optional, and all three matter more than they look:

  • sdr_transfer - how the source codes decode (sRGB by default; Rec.709, Gamma 2.2, Gamma 2.4 available). Get this wrong and the comparison is against the wrong curve.
  • cut_data - shot starts, either Scene Cut Detect's string or '0, 48, 120'. Empty means RUDRA finds the cuts itself with cut_threshold (0.15).
  • reference_white_nits - 203 unless your pipeline says otherwise.

Out: report (mean/max, worst frame, per-shot layout, in plain sentences), json_report (the whole thing as JSON, for anything you want to automate), and flicker_ev_max - a FLOAT, which is the one output that makes this usable at scale.

The report has one very good habit: when flicker_ev_max clears 0.1 EV it adds a line telling you to try HDR Shot Hold. That's a tool that knows its own ecosystem.

Install

It's in the Radiance pack:

cd ComfyUI/custom_nodes
git clone https://github.com/fxtd-studios/radiance
cd radiance
python -m pip install -r requirements.txt

Or Manager → search Radiance → Install → restart → refresh the browser. Windows portable: python_embeded\python.exe for pip. Nothing downloads for this node; it's numpy arithmetic.

Where people get burned

Give it the same clip, twice. SDR and HDR must have the same number of frames and the same resolution - the node checks and raises a specific error telling you the counts, which is more than most do, but it's still the first thing that goes wrong when you've cropped or resized the master between the conversion and the report.

Read the local numbers. Framing the whole report on flicker_ev_max alone will miss the classic case: a small blown window shuddering in an otherwise static frame. If local_flicker_ev_max is much worse than the global max, that's your problem area and a per-area view of the numbers is what tells you where to put a region or a mask.

A bad transfer setting inflates the number. If you feed it sRGB when the source was really gamma 2.4 broadcast, the residual contains your mistake rather than the conversion's. If a report looks absurdly bad on a shot you know is clean, check that first.

Frames that start a shot are excluded - so a one-frame shot scores nothing. Don't read an empty result as a pass on a clip of hard cuts.

CategoryFXTD STUDIOS/Radiance/HDR

Inputs (7)

NameTypeDefaultDescription
sdrIMAGEThe source clip, as decoded (0..1 codes).
hdrIMAGEThe HDR made from it, scene-linear, the same frames.
image_spaceCOMBOLinear (Rec.709)What the HDR is: scene-linear in these primaries, 1.0 = reference_white_nits. PQ / HLG are not accepted.
sdr_transferoptCOMBOsRGBHow the source codes decode.
cut_dataoptSTRINGShot starts: ◎ Scene Cut Detect's cut_data, a JSON list or '0, 48, 120'. Empty: RUDRA finds them.
cut_thresholdoptFLOAT0.150.01–1With no cut_data: RUDRA's thumbnail change that starts a shot.
reference_white_nitsoptFLOAT20380–400Nits of 1.0 in the HDR (BT.2408: 203).

Outputs (3)

NameTypeDescription
reportSTRING—
json_reportSTRING—
flicker_ev_maxFLOAT—