ComfyUI Node
Video Watermark (视频水印)
A ComfyUI node in Ken-Chen/sora with 41 inputs and 2 outputs.
Video Watermark (视频水印)
- video
- watermark_image
- video
- info
◄watermark_typetext►
◄enable_watermarktrue►
◄text_content© 2025 Your Brand►
◄font_size48►
◄font_colorwhite►
◄custom_color_r255►
◄custom_color_g255►
◄custom_color_b255►
◄text_positionbottom_right►
◄text_opacity0.70►
◄auto_remove_bgfalse►
◄bg_color_modewhite►
◄bg_threshold240►
◄image_positiontop_right►
◄image_scale0.15►
◄image_opacity0.80►
◄combined_layouttext_below_image►
◄combined_spacing10►
◄margin_x20►
◄margin_y20►
◄custom_x100►
◄custom_y100►
◄animationnone►
◄animation_duration2.0►
◄move_directionleft_to_right►
◄rotation_speed30.00►
◄scale_range_min0.5►
◄scale_range_max1.5►
◄blink_frequency2.0►
◄start_time0.0►
◄end_time-1.0►
◄add_shadowtrue►
◄shadow_offset2►
◄add_outlinefalse►
◄enable_multi_positionfalse►
◄multi_position_presetfour_corners►
◄position_listtop_left,top_right,bottom_left,bottom_right►
◄position_switch_interval3.0►
◄outline_width2►
CategoryKen-Chen/sora
Inputs (41)
| Name | Type | Default | Description |
|---|---|---|---|
| video | VIDEO | 输入视频 | |
| watermark_type | COMBO | text | 水印类型:text=文字, image=图片, both=文字+图片 |
| enable_watermark | BOOLEAN | true | 是否添加水印 |
| text_contentopt | STRING | © 2025 Your Brand | 水印文字内容 |
| font_sizeopt | INT | 4812–200 | 字体大小 |
| font_coloropt | COMBO | white | 字体颜色 |
| custom_color_ropt | INT | 2550–255 | 自定义颜色R(font_color=custom时使用) |
| custom_color_gopt | INT | 2550–255 | 自定义颜色G |
| custom_color_bopt | INT | 2550–255 | 自定义颜色B |
| text_positionopt | COMBO | bottom_right | 文字位置 |
| text_opacityopt | FLOAT | 0.700–1 | 文字透明度 |
| watermark_imageopt | IMAGE | 水印图片(可连接Load Image) | |
| auto_remove_bgopt | BOOLEAN | false | 自动移除纯色背景(白底、黑底等) |
| bg_color_modeopt | COMBO | white | 背景颜色模式 |
| bg_thresholdopt | INT | 2400–255 | 背景检测阈值(越高越严格) |
| image_positionopt | COMBO | top_right | 图片位置 |
| image_scaleopt | FLOAT | 0.150.01–1 | 图片缩放比例(相对视频宽度) |
| image_opacityopt | FLOAT | 0.800–1 | 图片透明度 |
| combined_layoutopt | COMBO | text_below_image | 文字和图片组合布局(仅当watermark_type=both时生效) |
| combined_spacingopt | INT | 100–100 | 文字和图片之间的间距(像素) |
| margin_xopt | INT | 200–500 | 水平边距(像素) |
| margin_yopt | INT | 200–500 | 垂直边距(像素) |
| custom_xopt | INT | 1000–3840 | 自定义X坐标(position=custom时使用) |
| custom_yopt | INT | 1000–2160 | 自定义Y坐标 |
| animationopt | COMBO | none | 动画效果 - 新增10种吸引眼球的效果 |
| animation_durationopt | FLOAT | 2.00.1–10 | 动画持续时间(秒) |
| move_directionopt | COMBO | left_to_right | 移动方向 |
| rotation_speedopt | FLOAT | 30.001–360 | 旋转速度(度/秒) |
| scale_range_minopt | FLOAT | 0.50.1–2 | 缩放最小值 |
| scale_range_maxopt | FLOAT | 1.50.1–2 | 缩放最大值 |
| blink_frequencyopt | FLOAT | 2.00.1–10 | 闪烁频率(次/秒) |
| start_timeopt | FLOAT | 0.00–3600 | 水印开始时间(秒) |
| end_timeopt | FLOAT | -1.0-1–3600 | 水印结束时间(秒,-1表示到视频结束) |
| add_shadowopt | BOOLEAN | true | 为文字添加阴影效果 |
| shadow_offsetopt | INT | 20–10 | 阴影偏移(像素) |
| add_outlineopt | BOOLEAN | false | 为文字添加描边 |
| enable_multi_positionopt | BOOLEAN | false | 水印在多个位置之间切换 |
| multi_position_presetopt | COMBO | four_corners | 多位置预设方案 |
| position_listopt | STRING | top_left,top_right,bottom_left,bottom_right | 自定义位置列表(仅当preset=custom时使用) |
| position_switch_intervalopt | FLOAT | 3.00.5–30 | 位置切换间隔(秒) |
| outline_widthopt | INT | 21–10 | 描边宽度 |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| video | VIDEO | — |
| info | STRING | — |