HDR Shot Hold (RUDRA)
The de-flicker that only touches the gain, never the picture
- sdr
- hdr
- image
- cut_data
- report
Why de-flicker usually ruins the shot
Every temporal smoother I've used on AI video output has the same trade: it stops the shimmer and it also smears the motion, because it's averaging pixels. Nobody wants to trade a pulsing sky for motion that looks like it was shot through Vaseline.
HDR Shot Hold takes a different route, and it's the smartest bit of design in the whole RUDRA set. Where the source pixel didn't change from the previous frame, it holds the HDR's gain over the source with a time constant. Where the source moved, or the shot cut, the frame is its own. So the source's own motion - the actual change in the picture - passes straight through untouched. Only the expansion factor gets smoothed, and that's the thing that was flickering.
Consequence: this is a repair you can apply to real footage without worrying about the picture getting softer over time. On a locked-off shot with a blown sky, it's a genuine fix.
How it works
The node computes, per pixel, what factor the conversion multiplied the source by, and holds a temporally-smoothed version of that factor where the source is still. Inside highlights clipped in both frames, the source can't tell you anything, so the HDR's own change decides there.
hold_seconds is the time constant - 0.25 s by default, which is RUDRA's own temporal smoothing, and 0 turns the node off. fps converts it to a per-frame retention, so it is not decorative: tell it the wrong frame rate and you're holding for a different length of time in real seconds than you asked for. Feed it 24 for 60 fps footage and the hold is nearly two and a half times longer than intended.
Shots come from cut_data, or are found by RUDRA's own thumbnail test when it's empty (cut_threshold, 0.15). The gain resets at each cut, which is why cuts matter so much here - carry a hold across a cut and the first frame of the new shot wears the old shot's gain.
Inputs and outputs
Required: sdr, hdr (same clip, same size - it raises a clear error if not), image_space, hold_seconds, fps. Optional: sdr_transfer, cut_data, cut_threshold.
Out: image (the held master, same dtype as the input), cut_data (the cuts it used, as a JSON string - feed it forward so the report and the metadata agree with what was actually held), and report, which tells you what retention it used, how many shots it found and how it found them, plus the mean share of each frame's pixels actually held.
That cut_data passthrough is worth using. In a chain it means one authority on where the cuts are, and the Flicker Report and Dynamic Metadata downstream all see the same shot boundaries.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/fxtd-studios/radiance
cd radiance
python -m pip install -r requirements.txt
ComfyUI Manager → search Radiance → Install also works, then restart and refresh. Windows portable: pip with python_embeded\python.exe. No model downloads.
Where people get burned
Wrong fps is the number one silent error. The tooltip states the retention derives from it; nothing validates that the number matches your clip. Some loaders report frame rate, some don't - check, don't assume 24.
hold_seconds at 0 is off, and off is the default-looking state. If you run this node and the picture is identical, you may simply have asked for no hold. 0.25 is the value you want; it's the default for a reason.
Too long a hold lags real changes. A slow exposure ramp in the source - a light coming up, a gradual move out of shade - is exactly the situation where part of the frame holds a stale gain. Keep the default and only push it when the Flicker Report says the residual is still over roughly 0.1 EV.
It can't fix a fill. If the AI fill invents a different sky every 33 frames, holding the gain smooths brightness, not content. Run the report after this node, not instead of it - the two are a loop: report, hold, report again.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| sdr | IMAGE | The source clip, as decoded (0..1 codes). | |
| hdr | IMAGE | The HDR made from it, scene-linear, the same frames. | |
| image_space | COMBO | Linear (Rec.709) | What the HDR is: scene-linear in these primaries, 1.0 = reference_white_nits. PQ / HLG are not accepted. |
| hold_seconds | FLOAT | 0.250–5 | The hold's time constant (RUDRA's temporal smoothing, default 0.25 s). 0: off. |
| fps | FLOAT | 24.0001–240 | The clip's frame rate (sets the per-frame retention). |
| sdr_transferopt | COMBO | sRGB | How the source codes decode. |
| cut_dataopt | STRING | Shot starts: ◎ Scene Cut Detect's cut_data, a JSON list or '0, 48, 120'. Empty: RUDRA finds them. | |
| cut_thresholdopt | FLOAT | 0.150.01–1 | With no cut_data: RUDRA's thumbnail change that starts a shot. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| cut_data | STRING | — |
| report | STRING | — |