zhangyong 9 月之前
父节点
当前提交
17c6241acd
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      common/ffmpeg.py
  2. 1 1
      video_rewriting/video_prep.py

+ 1 - 1
common/ffmpeg.py

@@ -324,7 +324,7 @@ class FFmpeg():
             subtitle_cmd = f"subtitles={single_video_srt}:force_style='Fontsize=14,Fontname=wqy-zenhei,Outline=2,PrimaryColour=&H00FFFF,SecondaryColour=&H000000,Bold=1,MarginV=20'"
             draw = f"{subtitle_cmd}"
         # 多线程数
-        num_threads = 6
+        num_threads = 5
         # 构建 FFmpeg 命令,生成视频
         ffmpeg_cmd_oss = [
                 "ffmpeg",

+ 1 - 1
video_rewriting/video_prep.py

@@ -315,7 +315,7 @@ class getVideo:
                     cls.remove_files(video_path_url)
                     Common.logger("warning").warning(f"{name}的{task_mark}任务处理失败:{e}\n")
 
-        batch_size = 2
+        batch_size = 1
         with concurrent.futures.ThreadPoolExecutor(max_workers=batch_size) as executor:
             index = 0
             while index < len(task_data):