Nodes/ComfyUI-VideoOverlayFFmpeg/Video Overlay with Subtitles (画中画+字幕)
ComfyUI Node

Video Overlay with Subtitles (画中画+字幕)

A ComfyUI node in video with 23 inputs and 1 output.

By GuardSkill·Created 9 months ago·Updated 9 months ago· 0
Video Overlay with Subtitles (画中画+字幕)
  • alignment
  • video_path
big_video_path
small_video_path
mask_video_path
opacity1.00
positionright_bottom
margin_x0
margin_y0
size_ratio0.25
big_video_audio_volume0.0
small_video_audio_volume1.0
video_fps24
big_video_speed1.8
small_video_speed1.0
font_pathYRDZST Semibold.ttf
font_size48
font_colorwhite
x_position0
y_position0
subtitle_positionbottom_center
max_subtitle_width0
subtitle_bg_opacity0.7
subtitle_bg_colorblack
Categoryvideo

Inputs (23)

NameTypeDefaultDescription
big_video_pathSTRING
small_video_pathSTRING
mask_video_pathSTRING
opacityFLOAT1.000–1
positionCOMBOright_bottom5 options: right_bottom, right_top, left_bottom, left_top, center
margin_xINT00–500
margin_yINT00–500
size_ratioFLOAT0.250.1–1
big_video_audio_volumeFLOAT0.00–2
small_video_audio_volumeFLOAT1.00–2
video_fpsFLOAT241–120
big_video_speedFLOAT1.80.25–4
small_video_speedFLOAT1.00.25–4
alignmentoptwhisper_alignment
font_pathoptCOMBOYRDZST Semibold.ttf18 options: YRDZST Semibold.ttf, YoungSerif-Regular.ttf, impact.ttf, Oswald-Bold.ttf, Roboto-Regular copy.ttf, PixelifySans-Bold.ttf, +12
font_sizeoptINT4812–200
font_coloroptSTRINGwhite
x_positionoptINT0-1000–3000
y_positionoptINT0-1000–3000
subtitle_positionoptCOMBObottom_center6 options: bottom_center, top_center, bottom_left, bottom_right, center, custom
max_subtitle_widthoptINT00–4000
subtitle_bg_opacityoptFLOAT0.70–1
subtitle_bg_coloroptSTRINGblack

Outputs (1)

NameTypeDescription
video_pathSTRING