一个开源的全自动视频生成软件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技术12 分钟前
构建高转化海外电商搜索:阿里云OpenSearch行业算法版的全链路智能优化策略实战
人工智能·搜索引擎
Awu122725 分钟前
⚡从零开发 Agent CLI(五)实现一个可治理、可扩展的工具系统
前端·人工智能·claude
字节跳动视频云技术团队25 分钟前
让 Agent 成为音视频工作台:AI MediaKit CLI + Skill 发布
人工智能·音视频开发
魏祖潇29 分钟前
framework 整合实战——DDD/TDD/SDD 三件套在 framework 仓的真实落地
人工智能·后端
Token炼金师1 小时前
去噪扩散:从随机噪声到高保真图像的数学之路
人工智能·aigc
这个DBA有点耶1 小时前
AI写的SQL跑崩了生产库,这锅谁背?
数据库·人工智能·程序员
阿里云大数据AI技术2 小时前
阿里云 EMR AI 助手正式发布:从问答工具到全栈智能运维助手
运维·人工智能
Larcher2 小时前
从零搭建 MCP 服务——让 AI 拥有无限扩展能力
人工智能·程序员
zzzzzz3102 小时前
你的 AI 写的 React 烂透了?这个 8000+ Star 的开源工具能揪出 90% 的「Agent 屎山」
人工智能
小星AI3 小时前
MCP协议超详细教程,从入门到实战
人工智能