一个开源的全自动视频生成软件MoneyPrinterTurbo

只需提供一个视频 主题 或 关键词 ,就可以全自动生成视频文案、视频素材、视频字幕、视频背景音乐,然后合成一个高清的短视频。

一:功能特性

完整的 MVC架构,代码 结构清晰,易于维护,支持 API 和 Web界面

支持视频文案 AI自动生成,也可以自定义文案

支持多种 高清视频 尺寸

竖屏 9:16,1080x1920

横屏 16:9,1920x1080

支持 批量视频生成,可以一次生成多个视频,然后选择一个最满意的

支持 视频片段时长设置,方便调节素材切换频率

支持 中文 和 英文 视频文案

支持 多种语音 合成

支持 字幕生成,可以调整 字体、位置、颜色、大小,同时支持字幕描边设置

支持 背景音乐,随机或者指定音乐文件,可设置背景音乐音量

视频素材来源 高清,而且 无版权

支持 OpenAI、moonshot、Azure、gpt4free、one-api、通义千问、Google Gemini、Ollama 等多种模型接入

二:本地部署

1、克隆代码

复制代码
git clone https://github.com/harry0703/MoneyPrinterTurbo.git
cd MoneyPrinterTurbo

2、创建虚拟环境

复制代码
conda create -n MoneyPrinterTurbo python=3.10
conda activate MoneyPrinterTurbo
pip install -r requirements.txt

安装imagemagick

复制代码
sudo apt-get install imagemagick

3、修改配置文件

复制代码
cd MoneyPrinterTurbo
cp config.example.toml config.toml

需要填写文本生成模型的API和视频库的API,在这里我们选用了Moonshot和Pexels以方便国内用户使用。

Moonshot API申请地址:月之暗面API申请地址

Pexels素材库申请地址:免费素材图片 (pexels.com)

注册登录并获取API。

三:运行

复制代码
conda activate MoneyPrinterTurbo
sh webui.sh

四:问题解析

1、VPN问题

复制代码
failed to download videos, maybe the network is not available. 
if you are in China, please use a VPN.

这个大概率是网络原因,无法访问境外的服务,请使用VPN解决。在选用音频设置的时候尽量选用中文,因为英文模型需要翻墙。

2、ImageMagick无权限写入

复制代码
OSError: MoviePy Error: creation of None failed because of the following error: convert-im6.q16: attempt to perform an operation not allowed by the security policy `@/tmp/tmp6hu8uypa.txt' @ error/property.c/InterpretImageProperties/3706. convert-im6.This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or that the path you specified is incorrect

编辑 policy.xml,并修改为:

复制代码
"policy domain="path" rights="read,write" pattern="@""
相关推荐
AI数据皮皮侠30 分钟前
中国各省森林覆盖率等数据(2000-2023年)
大数据·人工智能·python·深度学习·机器学习
西柚小萌新2 小时前
【深入浅出PyTorch】--3.1.PyTorch组成模块1
人工智能·pytorch·python
鑫宝的学习笔记3 小时前
Vmware虚拟机联网问题,显示:线缆已拔出!!!
人工智能·ubuntu
小李独爱秋3 小时前
机器学习中的聚类理论与K-means算法详解
人工智能·算法·机器学习·支持向量机·kmeans·聚类
comli_cn4 小时前
GSPO论文阅读
论文阅读·人工智能
大有数据可视化4 小时前
数字孪生背后的大数据技术:时序数据库为何是关键?
大数据·数据库·人工智能
Bioinfo Guy4 小时前
Genome Med|RAG-HPO做表型注释:学习一下大语言模型怎么作为发文思路
人工智能·大语言模型·多组学
张较瘦_5 小时前
[论文阅读] AI + 软件工程(Debug)| 告别 “猜 bug”:TreeMind 用 LLM+MCTS 破解 Android 不完整报告复现难题
论文阅读·人工智能·bug
深栈5 小时前
机器学习:线性回归
人工智能·pytorch·python·机器学习·线性回归·sklearn
AI视觉网奇5 小时前
虚拟机安装 网络问题
人工智能·虚拟机