Bladeren bron

更新字体

zhangyong 1 jaar geleden
bovenliggende
commit
9ef7c85263
3 gewijzigde bestanden met toevoegingen van 8 en 8 verwijderingen
  1. 5 5
      config.ini
  2. 1 2
      requirements.txt
  3. 2 1
      video_agc/agc_video_method.py

+ 5 - 5
config.ini

@@ -1,7 +1,7 @@
 [PATHS]
-VIDEO_EDITOR_PATH = /Users/tzld/Desktop/video_editor_agc/video_agc/path/
-VIDEO_PATH = /Users/tzld/Desktop/video_editor_agc/video_agc/path/video/
-SRT_PATH = /Users/tzld/Desktop/video_editor_agc/video_agc/path/srt/
-OSS_PATH = /Users/tzld/Desktop/video_editor_agc/video_agc/path/oss_video/
-TXT_PATH = /Users/tzld/Desktop/video_editor_agc/video_agc/path/txt/
+VIDEO_EDITOR_PATH = /root/video_editor_agc/video_agc/path/
+VIDEO_PATH = /root/video_editor_agc/video_agc/path/video/
+SRT_PATH = /root/video_editor_agc/video_agc/path/srt/
+OSS_PATH = /root/video_editor_agc/video_agc/path/oss_video/
+TXT_PATH = /rootr   r/video_editor_agc/video_agc/path/txt/
 

+ 1 - 2
requirements.txt

@@ -21,5 +21,4 @@ idna
 chardet
 pillow
 imageio
-configparser
-subprocess
+configparser

+ 2 - 1
video_agc/agc_video_method.py

@@ -239,7 +239,8 @@ 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=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'"
         else:
             subtitle_cmd = "drawtext=text='分享、转发给群友':fontsize=50:fontcolor=black:x=(w-text_w)/2:y=h-text_h-50"
         # 背景色参数