Optimize memory usage in moviepy
Upgrade version number to 1.2.0
This commit is contained in:
@@ -56,7 +56,7 @@ project_description = _cfg.get(
|
|||||||
"project_description",
|
"project_description",
|
||||||
"<a href='https://github.com/harry0703/MoneyPrinterTurbo'>https://github.com/harry0703/MoneyPrinterTurbo</a>",
|
"<a href='https://github.com/harry0703/MoneyPrinterTurbo'>https://github.com/harry0703/MoneyPrinterTurbo</a>",
|
||||||
)
|
)
|
||||||
project_version = _cfg.get("project_version", "1.1.9")
|
project_version = _cfg.get("project_version", "1.2.0")
|
||||||
reload_debug = False
|
reload_debug = False
|
||||||
|
|
||||||
imagemagick_path = app.get("imagemagick_path", "")
|
imagemagick_path = app.get("imagemagick_path", "")
|
||||||
|
|||||||
@@ -298,6 +298,7 @@ def generate_video(
|
|||||||
fps=30,
|
fps=30,
|
||||||
)
|
)
|
||||||
video_clip.close()
|
video_clip.close()
|
||||||
|
del video_clip
|
||||||
logger.success("completed")
|
logger.success("completed")
|
||||||
|
|
||||||
|
|
||||||
@@ -342,6 +343,7 @@ def preprocess_video(materials: List[MaterialInfo], clip_duration=4):
|
|||||||
video_file = f"{material.url}.mp4"
|
video_file = f"{material.url}.mp4"
|
||||||
final_clip.write_videofile(video_file, fps=30, logger=None)
|
final_clip.write_videofile(video_file, fps=30, logger=None)
|
||||||
final_clip.close()
|
final_clip.close()
|
||||||
|
del final_clip
|
||||||
material.url = video_file
|
material.url = video_file
|
||||||
logger.success(f"completed: {video_file}")
|
logger.success(f"completed: {video_file}")
|
||||||
return materials
|
return materials
|
||||||
|
|||||||
@@ -56,8 +56,8 @@
|
|||||||
"You can download the generated video from the following links": "你可以从以下链接下载生成的视频",
|
"You can download the generated video from the following links": "你可以从以下链接下载生成的视频",
|
||||||
"Basic Settings": "**基础设置** (:blue[点击展开])",
|
"Basic Settings": "**基础设置** (:blue[点击展开])",
|
||||||
"Language": "界面语言",
|
"Language": "界面语言",
|
||||||
"Pexels API Key": "Pexels API Key ([点击获取](https://www.pexels.com/api/))",
|
"Pexels API Key": "Pexels API Key ([点击获取](https://www.pexels.com/api/)) :red[推荐使用]",
|
||||||
"Pixabay API Key": "Pixabay API Key ([点击获取](https://pixabay.com/api/docs/#api_search_videos))",
|
"Pixabay API Key": "Pixabay API Key ([点击获取](https://pixabay.com/api/docs/#api_search_videos)) :red[可以不用配置,如果 Pexels 无法使用,再选择Pixabay]",
|
||||||
"LLM Provider": "大模型提供商",
|
"LLM Provider": "大模型提供商",
|
||||||
"API Key": "API Key (:red[必填,需要到大模型提供商的后台申请])",
|
"API Key": "API Key (:red[必填,需要到大模型提供商的后台申请])",
|
||||||
"Base Url": "Base Url (可选)",
|
"Base Url": "Base Url (可选)",
|
||||||
|
|||||||
Reference in New Issue
Block a user