ComfyUI > Nodes > ComfyUI-FFmpeg > šŸ”„AddImgWatermark

ComfyUI Node: šŸ”„AddImgWatermark

Class Name

AddImgWatermark

Category
šŸ”„FFmpeg
Author
MoonHugo (Account age: 158days)
Extension
ComfyUI-FFmpeg
Latest Updated
2024-11-13
Github Stars
0.04K

How to Install ComfyUI-FFmpeg

Install this extension via the ComfyUI Manager by searching for ComfyUI-FFmpeg
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-FFmpeg in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

šŸ”„AddImgWatermark Description

Automate image watermark integration in videos with precise control over size and position using FFmpeg.

šŸ”„AddImgWatermark:

The AddImgWatermark node is designed to seamlessly integrate an image watermark into a video file using FFmpeg, a powerful multimedia processing tool. This node is particularly beneficial for content creators and digital artists who wish to protect their video content by adding a visual watermark, such as a logo or a signature, to their videos. The node allows you to specify the size and position of the watermark, ensuring that it fits perfectly within the video frame without obstructing important content. By automating the watermarking process, this node saves time and effort, providing a reliable method to enhance video security and branding.

šŸ”„AddImgWatermark Input Parameters:

video_path

The video_path parameter specifies the location of the video file to which the watermark will be added. It is crucial for the node to access the correct video file, and the path must be a valid string pointing to an existing video file. The default value is set to C:/Users/Desktop/video.mp4. Ensure the file path is correct and the file is a supported video format.

output_path

The output_path parameter defines the directory where the watermarked video will be saved. This path must be a valid directory, and the node will generate the output file within this location. The default value is C:/Users/Desktop/output/. Make sure the directory exists and has write permissions.

watermark_image

The watermark_image parameter is the path to the image file that will be used as the watermark. This image should be in a supported format such as PNG, JPG, JPEG, BMP, or GIF. The default value is C:/Users/Desktop/logo.png. Ensure the image file exists and is accessible.

watermark_img_width

The watermark_img_width parameter determines the width of the watermark image in pixels. The node will scale the image to this width while maintaining its aspect ratio. The default value is 100, with a minimum value of 1. Adjust this value to control the size of the watermark on the video.

position_x

The position_x parameter sets the horizontal position of the watermark on the video. It is an integer value that specifies the number of pixels from the left edge of the video frame. The default value is 10. Adjust this value to position the watermark as desired.

position_y

The position_y parameter sets the vertical position of the watermark on the video. It is an integer value that specifies the number of pixels from the top edge of the video frame. The default value is 10. Adjust this value to position the watermark as desired.

šŸ”„AddImgWatermark Output Parameters:

video_complete_path

The video_complete_path output parameter provides the full path to the watermarked video file. This string value indicates where the processed video has been saved, allowing you to easily locate and access the final output. It confirms the successful completion of the watermarking process.

šŸ”„AddImgWatermark Usage Tips:

  • Ensure that the video_path and watermark_image paths are correct and accessible to avoid errors during processing.
  • Adjust the watermark_img_width to ensure the watermark is visible but not intrusive, maintaining a balance between visibility and aesthetics.
  • Use the position_x and position_y parameters to strategically place the watermark in a location that does not obstruct important video content.

šŸ”„AddImgWatermark Common Errors and Solutions:

Error: video_path is not a video file

  • Explanation: This error occurs when the specified video_path does not point to a valid video file.
  • Solution: Verify that the file path is correct and that the file is in a supported video format.

Error: video_path does not exist

  • Explanation: This error indicates that the video file specified in video_path cannot be found.
  • Solution: Check the file path for typos and ensure the file exists at the specified location.

Error: output_path is not a directory

  • Explanation: This error arises when the output_path is not a valid directory.
  • Solution: Ensure that the output_path is a directory and that it exists. Create the directory if necessary.

Error: watermark_image is not an image file

  • Explanation: This error occurs when the watermark_image is not a valid image file.
  • Solution: Confirm that the file path is correct and that the file is in a supported image format.

Error: watermark_image does not exist

  • Explanation: This error indicates that the image file specified in watermark_image cannot be found.
  • Solution: Check the file path for typos and ensure the file exists at the specified location.

šŸ”„AddImgWatermark Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-FFmpeg
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.