Visit ComfyUI Online for ready-to-use ComfyUI environment
Overlay subtitles on video frames with timing alignment, font customization, and mask generation for AI artists.
The Add Subtitles To Frames node is designed to overlay subtitles onto a sequence of video frames, making it an essential tool for AI artists who want to add textual elements to their visual content. This node takes a series of images and aligns subtitles based on timing information, ensuring that the text appears at the correct moments in the video. It offers customization options for font type, size, color, and positioning, allowing you to tailor the appearance of the subtitles to match your creative vision. The node also generates masks and cropped images of the subtitles, which can be useful for further processing or effects. By automating the addition of subtitles, this node saves time and effort, enabling you to focus on the artistic aspects of your project.
This parameter accepts a sequence of images (frames) to which the subtitles will be added. The images should be in a format that can be processed by the node, typically as tensors.
This parameter takes a whisper_alignment
object, which contains the timing information for the subtitles. It ensures that the text appears at the correct frames based on the start and end times specified in the alignment data.
This parameter specifies the color of the subtitle text. It accepts a string value representing the color name or hex code. The default value is "white".
This parameter allows you to choose the font type for the subtitles. It lists available fonts from the specified font directory, enabling you to select the one that best fits your project's style.
This parameter sets the size of the subtitle text. It accepts an integer value, with a default of 100. The size can be adjusted in steps of 5 to achieve the desired appearance.
This parameter determines the horizontal position of the subtitles on the frames. It accepts an integer value, with a default of 100. The position can be adjusted in steps of 50.
This parameter determines the vertical position of the subtitles on the frames. It accepts an integer value, with a default of 100. The position can be adjusted in steps of 50.
This boolean parameter, when set to true, centers the subtitles horizontally on the frames. The default value is true.
This boolean parameter, when set to true, centers the subtitles vertically on the frames. The default value is true.
This parameter specifies the frames per second (FPS) of the video. It accepts an integer value, with a default of 24. The FPS value is used to calculate the correct frames for displaying the subtitles based on the alignment data.
This output provides the sequence of images with the subtitles added. The images are returned as tensors, ready for further processing or rendering.
This output provides masks for the images, highlighting the areas where the subtitles are present. The masks are useful for applying additional effects or processing only the subtitle regions.
This output provides cropped images of the subtitles. Each cropped image contains only the subtitle text, which can be used for further manipulation or analysis.
This output provides the coordinates of the subtitles on the frames. The coordinates are useful for understanding the placement of the text and for any additional processing that requires knowledge of the subtitle positions.
© Copyright 2024 RunComfy. All Rights Reserved.