@@ -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",
@@ -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):