![BrokenPipeError: [Errno 32] Broken pipe](https://www.chat-gpts.plus/wp-content/uploads/2026/06/72-006221e7.jpg)
BrokenPipeError: [Errno 32] Broken pipe
快速结论:此报错在 ComfyUI 使用 VideoHelperSuite 合成视频时触发,优先排查将节点中的 “save_metadata” 开关关闭是否能正常执行。Issue 中多位用户确认关闭 save_metadata 后问题消失,后续版本已修复。
问题场景
用户在 ComfyUI 中使用 VideoHelperSuite 自定义节点的 “combine video”(视频合成)功能时,在 workflow 执行过程中抛出 BrokenPipeError: [Errno 32] Broken pipe,导致视频无法正常输出。问题出现在节点的 nodes.py 第 199 行的 proc.stdin.write(frame.tobytes()) 调用处,触发时管道写入失败。
报错原文
ERROR:root:!!! Exception during processing !!!
ERROR:root:Traceback (most recent call last):
File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\nodes.py", line 199, in combine_video
proc.stdin.write(frame.tobytes())
BrokenPipeError: [Errno 32] Broken pipe
原因分析
根据 Issue 讨论,可能原因是 VideoHelperSuite 在调用 ffmpeg 子进程写入视频帧时,由于 save_metadata 功能启用导致 ffmpeg 管道提前关闭,出现写入管道断裂(Broken pipe)。多名用户反馈在开启 save_metadata 时必现此错误,关闭后不再报错。后续合并的 PR 已修复此问题,使得即使 metadata 写入失败,视频仍能成功保存。
环境排查
- ComfyUI 版本:Issue 中用户使用 portable 版,路径
F:\ComfyUI\ComfyUI_windows_portable;另有 Linux 用户也报告相同问题 - VideoHelperSuite 版本:用户曾更新到 V9 版本后仍报错
- Python 版本:未明确指定,但 ComfyUI 运行环境通常是 Python 3.10+
- 操作系统:Windows 和 Ubuntu 均有案例
解决步骤
- 临时排查:在 VideoHelperSuite 的 “combine video” 节点上,找到
save_metadata参数,将其切换为false(关闭状态),然后重新执行 workflow。 - 确认结果:如果关闭后不再报错且视频成功输出,说明问题来自 metadata 保存功能。
- 更新修复版本:将 VideoHelperSuite 更新到最新版本(合并了修复 PR 的版本),然后重新打开
save_metadata,再次执行 workflow。Issue 作者确认此修复版本下即使 console 中打印 metadata 相关的错误日志,视频也能正常保存。
验证方法
重新执行同样的 workflow,观察 ComfyUI 前台或后台终端是否仍出现 BrokenPipeError: [Errno 32] Broken pipe 报错。如果报错消失且合成视频正常输出在目标路径,问题即已解决。



