新增功能: - 添加3个新视频格式: h264-advanced, h264-high444, ffmpeg-manual - 新增9个高级参数: preset, tune, crf, pix_fmt, colorspace等 - 支持yuv420p (Mac兼容) 和 yuv444p (专业后期) 像素格式 - 实现三级模式: 标准模式/高级模式/手动模式 - 自动处理High444 profile和色彩元数据 代码改进: - 优化VIDEO_FORMATS字典,添加兼容性标记 - 扩展INPUT_TYPES,添加完整的高级参数支持 - 增强_create_video方法,智能处理不同模式 - 调整默认CRF值从19到20 (Mac推荐值) 文档新增: - VIDEO_FORMATS_GUIDE.md: YUV格式完整教程 - QUICK_REFERENCE.md: 快速参考卡片 - USAGE_GUIDE.md: 详细使用指南 - INTEGRATION_SUMMARY.md: 技术整合总结 - COMPLETION_REPORT.md: 完成报告 工具脚本: - simple_check.py: 简单验证脚本 - verify_integration.py: 完整验证脚本 h264-high444模块: - 独立的H.264 High 4:4:4编码节点 - 支持专业yuv444p格式 - 完整的色彩管理和高级参数 技术亮点: - 向后兼容,不影响现有工作流 - 默认配置确保Mac/iOS兼容性 - 清晰的兼容性标注和中文提示 - 完善的三层文档体系 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
ComfyUI Custom Node — H.264 High 4:4:4 Predictive Encoder (libx264)
This node encodes a ComfyUI IMAGE batch into H.264 High 4:4:4 Predictive using FFmpeg + libx264.
It forces:
-profile:v high444-pix_fmt yuv444p(oryuv444p10le)
And writes explicit color metadata to reduce colorspace/range surprises.
Install
-
Copy this folder into:
ComfyUI/custom_nodes/comfyui-h264-high444/ -
Restart ComfyUI.
Node
Video Encode (H.264 High444 4:4:4)
Key parameters
pix_fmt:yuv444p(8-bit) oryuv444p10le(10-bit)colorspace:bt709(default),bt601,bt2020nccolor_range:pc(full) ortv(limited)tune: optional x264 tune (animation/film/grain/...)x264_params: raw-x264-paramsstring (advanced)video_bitrate_kbps: optional bitrate cap (0 disables)ffmpeg_path: leave blank to auto-find, or set full pathverify_with_ffprobe: best-effort verification if ffprobe is available
Verify output manually
ffprobe -v error -select_streams v:0 \
-show_entries stream=codec_name,profile,pix_fmt \
-of default=nk=1:nw=1 output/high444.mp4
You should see:
High 4:4:4 Predictiveyuv444p(oryuv444p10le)