From 34d7a5da7330fd069d939f3519fb6b2d3910789e Mon Sep 17 00:00:00 2001 From: Yousef Rafat <81116377+yousef-rafat@users.noreply.github.com> Date: Tue, 28 Apr 2026 22:56:42 +0300 Subject: [PATCH] default pyav build doesn't support float16 exr --- comfy_extras/nodes_save_advanced.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/comfy_extras/nodes_save_advanced.py b/comfy_extras/nodes_save_advanced.py index af0bdefe5..b0b4e501a 100644 --- a/comfy_extras/nodes_save_advanced.py +++ b/comfy_extras/nodes_save_advanced.py @@ -171,8 +171,9 @@ class SaveImageAdvanced(IO.ComfyNode): av_fmt = 'gbrapf32le' if has_alpha else 'gbrpf32le' elif bit_depth == "16-bit": if file_format == "exr": - img_np = img_tensor.cpu().numpy().astype(np.float16) - av_fmt = 'gbrapf16le' if has_alpha else 'gbrpf16le' + # default pyav build doesn't come with a codec for float16 exr format + img_np = img_tensor.cpu().numpy().astype(np.float32) + av_fmt = 'gbrapf32le' if has_alpha else 'gbrpf32le' else: img_np = (img_tensor * 65535.0).clamp(0, 65535).to(torch.int32).cpu().numpy().astype(np.uint16) av_fmt = 'rgba64le' if has_alpha else 'rgb48le'