|
@@ -203,7 +203,7 @@ class FFmpeg():
|
|
|
# 添加字幕 wqy-zenhei Hiragino Sans GB
|
|
|
height = 1080
|
|
|
margin_v = int(height) // 8 # 可根据需要调整字幕和背景之间的距离
|
|
|
- subtitle_cmd = f"subtitles={pw_srt_path}:force_style='Fontsize=14,Fontname=wqy-zenhei,Outline=0,PrimaryColour=&H000000,SecondaryColour=&H000000,Bold=1,MarginV={margin_v}'"
|
|
|
+ subtitle_cmd = f"subtitles={pw_srt_path}:force_style='Fontsize=13,Fontname=wqy-zenhei,Outline=0,PrimaryColour=&H000000,SecondaryColour=&H000000,Bold=1,MarginV={margin_v}'"
|
|
|
bg_position_offset = (int(height) - margin_v) / 1.75
|
|
|
background_cmd = f"drawbox=y=(ih-{int(height)}/2-{bg_position_offset}):color=yellow@1.0:width=iw:height={int(height)}/4:t=fill"
|
|
|
|