ComfyUI > Nodes > ComfyUI_ASR > 视频添加静态字幕

ComfyUI Node: 视频添加静态字幕

Class Name

StaticSubtitlesToVideoMW

Category
🎤MW/MW-ASR
Author
billwuhao (Account age: 2576days)
Extension
ComfyUI_ASR
Latest Updated
2026-03-11
Github Stars
0.03K

How to Install ComfyUI_ASR

Install this extension via the ComfyUI Manager by searching for ComfyUI_ASR
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_ASR 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

视频添加静态字幕 Description

Integrates static subtitles into videos, ensuring fixed text overlays for consistent storytelling.

视频添加静态字幕:

The StaticSubtitlesToVideoMW node is designed to seamlessly integrate static subtitles into a video, enhancing the visual storytelling by providing clear and consistent text overlays. This node is particularly beneficial for creators who wish to add subtitles to their videos without the need for dynamic adjustments or time-based changes. By embedding static subtitles, the node ensures that the text remains fixed in position and style throughout the video, offering a straightforward and reliable method for subtitle integration. This can be especially useful for videos where the dialogue or narration is consistent and does not require real-time updates. The node's primary goal is to simplify the process of adding subtitles, making it accessible to users who may not have extensive technical expertise, while still providing a professional and polished final product.

视频添加静态字幕 Input Parameters:

视频

This parameter represents the video file to which the static subtitles will be added. It is essential as it serves as the base on which the subtitles are overlaid. The video should be in a compatible format to ensure smooth processing and integration of subtitles.

帧率

The frame rate of the video, specified as a floating-point number, dictates how many frames per second the video plays. This parameter is crucial for synchronizing the subtitles with the video playback, ensuring that the text appears at the correct time and remains consistent throughout the video. The frame rate must be accurately set to match the original video to avoid any discrepancies in subtitle timing.

字幕文本

This string parameter contains the subtitle text that will be displayed on the video. It is a required input and should be formatted correctly to ensure that the subtitles appear as intended. The text should be concise and clear, providing viewers with the necessary information without overwhelming the visual content.

字体

This parameter allows you to select the font style for the subtitles from a list of available fonts. The choice of font can significantly impact the readability and aesthetic of the subtitles, so it is important to choose a font that complements the video content and is easy to read.

字体大小比例

This floating-point parameter determines the size of the subtitle font relative to the video width. It allows for customization of the text size to ensure that subtitles are neither too small to read nor too large to distract from the video content. The default value is 0.05, with a range from 0.01 to 0.2, providing flexibility to suit different video dimensions.

字体颜色

This string parameter specifies the color of the subtitle text in the format #RRGGBB. Choosing the right color is important for maintaining contrast and readability against the video background. The default color is white (#FFFFFF), which is generally a safe choice for most videos.

字体背景色

This parameter sets the background color of the subtitle text, also in the format #RRGGBB. A background color can enhance the visibility of subtitles, especially in videos with varying or complex backgrounds. The default is black (#000000), providing a strong contrast with the default white text.

背景透明度

This floating-point parameter controls the opacity of the subtitle background, ranging from 0 (completely transparent) to 1 (completely opaque). Adjusting the transparency can help balance the visibility of subtitles with the underlying video content, ensuring that the text is readable without obscuring important visual elements.

视频添加静态字幕 Output Parameters:

IMAGE

The output of this node is a video with the static subtitles applied, returned as an IMAGE type. This output is the final product, ready for viewing or further processing. The subtitles are embedded directly into the video, ensuring that they are consistently displayed across all playback devices and platforms.

视频添加静态字幕 Usage Tips:

  • Ensure that the frame rate parameter matches the original video to maintain subtitle synchronization.
  • Choose a font and color combination that provides good contrast and readability against the video background.
  • Adjust the font size ratio and background opacity to suit the specific dimensions and content of your video.

视频添加静态字幕 Common Errors and Solutions:

"Invalid video format"

  • Explanation: The video file provided is not in a supported format.
  • Solution: Convert the video to a compatible format such as MP4 or AVI before processing.

"Subtitle text missing"

  • Explanation: The subtitle text parameter is empty or not properly formatted.
  • Solution: Ensure that the subtitle text is correctly inputted and formatted as a string.

"Font not found"

  • Explanation: The specified font is not available in the font list.
  • Solution: Verify that the font is installed in the correct directory and is listed in the available fonts.

视频添加静态字幕 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_ASR
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 Models, enabling artists to harness the latest AI tools to create incredible art.

视频添加静态字幕