zhangyong 1 year ago
parent
commit
21195248af
1 changed files with 2 additions and 2 deletions
  1. 2 2
      video_agc/agc_video_method.py

+ 2 - 2
video_agc/agc_video_method.py

@@ -240,7 +240,7 @@ class AgcVidoe():
         # 字幕参数
         if os.path.exists(s_path):
             # subtitle_cmd = f"subtitles={s_path}:force_style='Fontsize=11,Fontname=Hiragino Sans GB,Outline=0,PrimaryColour=&H000000,SecondaryColour=&H000000'"
-            subtitle_cmd = f"subtitles={s_path}:force_style='Fontsize=11,Fontname=wqy-zenhei,Outline=0,PrimaryColour=&H000000,SecondaryColour=&H000000'"
+            subtitle_cmd = f"subtitles={s_path}:force_style='Fontsize=12,Fontname=wqy-zenhei,Bold=1,Outline=0,PrimaryColour=&H000000,SecondaryColour=&H000000'"
         else:
             subtitle_cmd = "drawtext=text='分享、转发给群友':fontsize=40:fontcolor=black:x=(w-text_w)/2:y=h-text_h-30"
         # 背景色参数
@@ -263,7 +263,7 @@ class AgcVidoe():
             "-vf", f"scale=480:854,{background_cmd},{subtitle_cmd}",  # 添加背景色和字幕
             "-preset", "medium",  # 添加 x264 编码器的预设
             "-profile:v", "main",  # 指定视频编码的配置文件
-            "-b:v", "9997K",
+            "-b:v", "5M",
             "-shortest",  # 保持与音频时长一致
             "-map", "0:v:0",  # 映射第一个输入的视频流
             "-map", "1:a:0",  # 映射第二个输入的音频流