浏览代码

代码优化

zhangyong 1 年之前
父节点
当前提交
d2db191086
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      video_stitching/video_stitching.py

+ 1 - 1
video_stitching/video_stitching.py

@@ -213,7 +213,7 @@ class VideoStitching():
             video_with_subtitles = editor.CompositeVideoClip([final_clip, text_clip])
 
         # 生成视频
-        video_with_subtitles.write_videofile(output_path, codec='libx264', fps=30, threads=4)
+        video_with_subtitles.write_videofile(output_path, codec='libx264', fps=24)
         if os.path.isfile(output_path):
             Common.logger().info("视频生成成功!生成路径为:", output_path)
             return included_videos