MoneyPrinterTurbo – 免费开源的AI短视频生成工具

一、MoneyPrinterTurbo简介

MoneyPrinterTurbo是一款由开发者harry0703基于原有MoneyPrinter项目优化而来的开源AI视频生成工具。

这款工具的核心价值在于其全自动化的工作流程——用户只需提供一个视频主题或关键词,MoneyPrinterTurbo就能自动完成以下所有工作:

  • 根据主题生成视频文案
  • 从无版权素材库中搜索匹配的视频片段
  • 生成与文案同步的语音解说
  • 添加可自定义的字幕
  • 匹配合适的背景音乐
  • 最终合成一个完整的高清短视频

与OpenAI的Sora等纯AI生成视频不同,MoneyPrinterTurbo采用的是"智能缝合"技术,它将互联网上的高质量素材进行智能组合和编辑,既保证了视频质量,又避免了版权问题。这种技术路线使其对硬件要求相对较低,普通个人电脑即可运行,大大提高了实用性。

功能特性详解

MoneyPrinterTurbo集成了多种先进功能,使其成为一款真正意义上的"一站式"视频制作解决方案:

  1. 多尺寸视频生成

支持两种主流视频尺寸格式:

  • 竖屏9:16(1080×1920):专为抖音、快手等短视频平台优化
  • 横屏16:9(1920×1080):适合YouTube、B站等平台
  1. 智能文案生成

内置AI文案生成引擎,支持:

  • 根据关键词自动生成视频脚本
  • 支持中英文双语生成
  • 允许用户自定义文案
  • 可接入多种大模型(OpenAI、Ollama、Azure、通义千问等)提升文案质量
  1. 多媒体元素集成
  • 语音合成:提供400多种声音选择,支持多种语言和方言
  • 字幕系统:可调整字体、位置、颜色、大小,支持字幕描边设置
  • 背景音乐:内置无版权音乐库,可随机或指定音乐,调节音量
  1. 批量生成与效率工具
  • 支持一次生成多个视频版本,便于选择最佳作品
  • 可设置视频片段时长,控制素材切换频率
  • 采用高清无版权素材,避免法律风险
  1. 技术架构
  • 完整的MVC架构,代码结构清晰,易于二次开发
  • 同时支持API和Web界面两种调用方式
  • 基于Python和MoviePy视频编辑库构建

配置要求

  • 建议最低 CPU 4核 或以上,内存 4G 或以上,显卡非必须
  • Windows 10 或 MacOS 11.0 以上系统

适用场景

  • 社交媒体运营:快速生成抖音,快手 平台短视频内容
  • 营销推广:创建产品介绍,品牌宣传等短视频广告
  • 个人创作:个人快速制作Vlog,故事讲述等

先来看一下,我生成的视频效果,有声音,字幕,画面1920×1080。视频文件太大了,这里用gif演示其中5秒效果,只能上传10M的文件,视频总共有33秒。

 

整体效果还是可以的,字幕,声音都有。

二、安装

基础环境

1.安装python 3.13.3
2. 准备通义千问的API Key,Pixabay API Key
通义千问的API Key,用个人的即可,有免费额度。
Pixabay API Key,个人使用,也是免费的。链接地址: https://pixabay.com/api/docs/#api_search_videos
直接登录google账号,访问这个链接,就可以看到个人的API Key

 3. 这里强调一下,不需要显卡,只需要cpu 核和内存4G即可使用

下载资源

下载一键启动包,解压直接使用(路径不要有 中文、特殊字符、空格)
https://pan.baidu.com/s/1wg0UaIyXpO3SqIpaq790SQ?pwd=sbqx
https://drive.google.com/file/d/1HsbzfT7XunkrCrHw5ncUjFX8XX4zAuUh/view?usp=sharing

用百度盘下载太慢了,直接用google的链接,前提是你有魔法网络,下载就很快了。

启动脚本

解压文件,直接双击start.bat

 脚本会自动打开网页:http://localhost:8501/

基础设置

点击基础设置

大模型供应商:Qwen

API KEY: 输入自己的

模型:选择qwen-plus,也可以选择其他的,只要是文字聊天模型即可。注意:这里千万不要输入多模态的模型,比如:文生视频,图片识别等等。

视频来源:输入Pixabay API Key即可,国内网络可以正常使用。

注意:不要用Pexels API Key,这个必须要用魔法网络才可以使用。

 文案设置

视频主题:人间烟火,你可以输入别的主题。

视频文案:这里直接AI生成,你可以手动输入。最好还是AI生成,自然一点。

视频关键词:这里直接AI生成,只支持英文

视频来源:选择Pixbay,最好选这个,国内网络可以使用。

启用字幕:默认启用,默认字体即可。

朗读声音,这里用默认的女性即可。这里有国内方言,还有国外语言。

最后点击生成

输出如下:

2025-07-18 17:43:27.492 | INFO     | __main__:<module>:948 - 开始生成视频

2025-07-18 17:43:27.493 | INFO     | __main__:<module>:949 - {
    "video_subject": "人间烟火",
    "video_script": "晨曦微露,街道两旁的早点铺子早早升起炊烟,热气腾腾的包子、油条在案板上摆开,迎接新一天的烟火生活。人们匆匆穿梭在小巷之间,脚步声与吆喝声交织,城市的节奏从一顿简单的早餐开始。夜幕降临,霓虹灯下,烧烤摊的烟火气升腾,笑声与谈话语声弥漫在空气中,平凡的日子就在这一餐一饭、一呼一吸之间缓缓流淌。",
    "video_terms": "morning street food, breakfast vendors, city life rhythm, night street vendors, barbecue night",
    "video_aspect": "16:9",
    "video_concat_mode": "random",
    "video_transition_mode": "None",
    "video_clip_duration": 3,
    "video_count": 1,
    "video_source": "pixabay",
    "video_materials": null,
    "video_language": "",
    "voice_name": "zh-CN-XiaoxiaoNeural-Female",
    "voice_volume": 1.0,
    "voice_rate": 1.0,
    "bgm_type": "random",
    "bgm_file": "",
    "bgm_volume": 0.2,
    "subtitle_enabled": true,
    "subtitle_position": "bottom",
    "custom_position": 70.0,
    "font_name": "MicrosoftYaHeiBold.ttc",
    "text_fore_color": "#FFFFFF",
    "text_background_color": true,
    "font_size": 60,
    "stroke_color": "#000000",
    "stroke_width": 1.5,
    "n_threads": 2,
    "paragraph_number": 1
}

2025-07-18 17:43:27.497 | INFO     | app.services.task:start:211 - start task: b4233916-d32f-43ff-84fb-3f1df5f60091, stop_at: video

2025-07-18 17:43:27.501 | INFO     | app.services.task:generate_script:17 - 

## generating video script

2025-07-18 17:43:27.505 | DEBUG    | app.services.task:generate_script:26 - video script: 
晨曦微露,街道两旁的早点铺子早早升起炊烟,热气腾腾的包子、油条在案板上摆开,迎接新一天的烟火生活。人们匆匆穿梭在小巷之间,脚步声与吆喝声交织,城市的节奏从一顿简单的早餐开始。夜幕降临,霓虹灯下,烧烤摊的烟火气升腾,笑声与谈话语声弥漫在空气中,平凡的日子就在这一餐一饭、一呼一吸之间缓缓流淌。

2025-07-18 17:43:27.508 | INFO     | app.services.task:generate_terms:37 - 

## generating video terms

2025-07-18 17:43:27.510 | DEBUG    | app.services.task:generate_terms:51 - video terms: [
    "morning street food",
    "breakfast vendors",
    "city life rhythm",
    "night street vendors",
    "barbecue night"
]

2025-07-18 17:43:27.517 | INFO     | app.services.task:generate_audio:74 - 

## generating audio

2025-07-18 17:43:27.521 | INFO     | app.services.voice:azure_tts_v1:1127 - start, voice name: zh-CN-XiaoxiaoNeural, try: 1

2025-07-18 17:43:31.440 | INFO     | app.services.voice:azure_tts_v1:1147 - completed, output file: .\storage\tasks\b4233916-d32f-43ff-84fb-3f1df5f60091\audio.mp3

2025-07-18 17:43:31.441 | INFO     | app.services.task:generate_subtitle:102 - 

## generating subtitle, provider: edge

2025-07-18 17:43:31.444 | INFO     | app.services.voice:create_subtitle:1474 - completed, subtitle file created: .\storage\tasks\b4233916-d32f-43ff-84fb-3f1df5f60091\subtitle.srt, duration: 31.312

2025-07-18 17:43:31.445 | INFO     | app.services.task:get_video_materials:140 - 

## downloading videos from pixabay

2025-07-18 17:43:31.445 | INFO     | app.services.material:search_videos_pixabay:109 - searching videos: https://pixabay.com/api/videos/?q=morning+street+food&video_type=all&per_page=50&key=51359859-12ee7876f406e9b455a9ba3a8, with proxies: {}

2025-07-18 17:43:32.281 | INFO     | app.services.material:download_videos:219 - found 49 videos for 'morning street food'

2025-07-18 17:43:32.283 | INFO     | app.services.material:search_videos_pixabay:109 - searching videos: https://pixabay.com/api/videos/?q=breakfast+vendors&video_type=all&per_page=50&key=51359859-12ee7876f406e9b455a9ba3a8, with proxies: {}

2025-07-18 17:43:33.081 | INFO     | app.services.material:download_videos:219 - found 43 videos for 'breakfast vendors'

2025-07-18 17:43:33.084 | INFO     | app.services.material:search_videos_pixabay:109 - searching videos: https://pixabay.com/api/videos/?q=city+life+rhythm&video_type=all&per_page=50&key=51359859-12ee7876f406e9b455a9ba3a8, with proxies: {}

2025-07-18 17:43:33.894 | INFO     | app.services.material:download_videos:219 - found 50 videos for 'city life rhythm'

2025-07-18 17:43:33.894 | INFO     | app.services.material:search_videos_pixabay:109 - searching videos: https://pixabay.com/api/videos/?q=night+street+vendors&video_type=all&per_page=50&key=51359859-12ee7876f406e9b455a9ba3a8, with proxies: {}

2025-07-18 17:43:34.655 | INFO     | app.services.material:download_videos:219 - found 43 videos for 'night street vendors'

2025-07-18 17:43:34.656 | INFO     | app.services.material:search_videos_pixabay:109 - searching videos: https://pixabay.com/api/videos/?q=barbecue+night&video_type=all&per_page=50&key=51359859-12ee7876f406e9b455a9ba3a8, with proxies: {}

2025-07-18 17:43:35.514 | INFO     | app.services.material:download_videos:219 - found 48 videos for 'barbecue night'

2025-07-18 17:43:35.515 | INFO     | app.services.material:download_videos:227 - found total videos: 209, required duration: 32 seconds, found duration: 4345.0 seconds

2025-07-18 17:43:35.516 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2022/12/18/143486-782758140_large.mp4

2025-07-18 17:43:45.156 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-a8bea7b8132dc9f09b003ebf4f3a9745.mp4

2025-07-18 17:43:45.162 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2016/09/02/4882-181170856_large.mp4

2025-07-18 17:43:50.689 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-35bababb05ed2a54cc84bbc0bb209054.mp4

2025-07-18 17:43:50.690 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2016/06/27/3565-172488151_large.mp4

2025-07-18 17:43:57.028 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-20331a946df2c71f1b36e4b938cbbf49.mp4

2025-07-18 17:43:57.029 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2024/04/18/208477_large.mp4

2025-07-18 17:44:03.868 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-c0903a38702e6b3cb6fbd9b6d771318f.mp4

2025-07-18 17:44:03.871 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2019/04/03/22555-328624767_large.mp4

2025-07-18 17:44:09.765 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-21b762b983e47d38d9532ab7492df277.mp4

2025-07-18 17:44:09.766 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2023/03/02/152834-804130720_large.mp4

2025-07-18 17:44:15.770 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-738dfe7ce02cbfd54481bfb95ebfbc01.mp4

2025-07-18 17:44:15.771 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2025/02/23/260397_large.mp4

2025-07-18 17:44:22.931 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-38255b1cea69a7a1632605f9fa5afb5b.mp4

2025-07-18 17:44:22.932 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2024/04/17/208347_large.mp4

2025-07-18 17:44:28.615 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-9739632cf686fc9e2ef3ce4ccbfa5a13.mp4

2025-07-18 17:44:28.617 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2023/11/24/190485-888122631_large.mp4

2025-07-18 17:44:34.125 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-abf3ad49b6ce233d20fe641363e074c0.mp4

2025-07-18 17:44:34.127 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2019/09/25/27230-362518559_large.mp4

2025-07-18 17:44:40.232 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-a34e12ac70bdb403ac4f81d1e261a0a5.mp4

2025-07-18 17:44:40.234 | INFO     | app.services.material:download_videos:244 - downloading video: https://cdn.pixabay.com/video/2019/09/27/27268-363287559_large.mp4

2025-07-18 17:44:47.266 | INFO     | app.services.material:download_videos:249 - video saved: .\storage\cache_videos/vid-9a22925b8a52f4ff09099d5b44d77749.mp4

2025-07-18 17:44:47.268 | INFO     | app.services.material:download_videos:254 - total duration of downloaded videos: 33.0 seconds, skip downloading more

2025-07-18 17:44:47.271 | SUCCESS  | app.services.material:download_videos:260 - downloaded 11 videos

2025-07-18 17:44:47.272 | INFO     | app.services.task:generate_final_videos:175 - 

## combining video: 1 => .\storage\tasks\b4233916-d32f-43ff-84fb-3f1df5f60091\combined-1.mp4

2025-07-18 17:44:49.448 | INFO     | app.services.video:combine_videos:129 - audio duration: 31.9 seconds

2025-07-18 17:44:49.454 | INFO     | app.services.video:combine_videos:133 - maximum clip duration: 3 seconds

2025-07-18 17:45:27.337 | DEBUG    | app.services.video:combine_videos:162 - total subclipped items: 79

2025-07-18 17:45:27.340 | DEBUG    | app.services.video:combine_videos:169 - processing clip 1: 3840x2160, current duration: 0.00s, remaining: 31.90s

2025-07-18 17:45:30.644 | DEBUG    | app.services.video:combine_videos:179 - resizing clip, source: 3840x2160, ratio: 1.78, target: 1920x1080, ratio: 1.78

2025-07-18 17:46:02.335 | DEBUG    | app.services.video:combine_videos:169 - processing clip 2: 1920x1080, current duration: 3.00s, remaining: 28.90s

2025-07-18 17:46:08.965 | DEBUG    | app.services.video:combine_videos:169 - processing clip 3: 1920x1080, current duration: 6.00s, remaining: 25.90s

2025-07-18 17:46:17.151 | DEBUG    | app.services.video:combine_videos:169 - processing clip 4: 2560x1440, current duration: 9.00s, remaining: 22.90s

2025-07-18 17:46:19.883 | DEBUG    | app.services.video:combine_videos:179 - resizing clip, source: 2560x1440, ratio: 1.78, target: 1920x1080, ratio: 1.78

2025-07-18 17:46:36.594 | DEBUG    | app.services.video:combine_videos:169 - processing clip 5: 3840x2160, current duration: 12.00s, remaining: 19.90s

2025-07-18 17:46:40.389 | DEBUG    | app.services.video:combine_videos:179 - resizing clip, source: 3840x2160, ratio: 1.78, target: 1920x1080, ratio: 1.78

2025-07-18 17:47:13.964 | DEBUG    | app.services.video:combine_videos:169 - processing clip 6: 1920x1080, current duration: 15.00s, remaining: 16.90s

2025-07-18 17:47:21.948 | DEBUG    | app.services.video:combine_videos:169 - processing clip 7: 3840x2160, current duration: 18.00s, remaining: 13.90s

2025-07-18 17:47:25.093 | DEBUG    | app.services.video:combine_videos:179 - resizing clip, source: 3840x2160, ratio: 1.78, target: 1920x1080, ratio: 1.78

2025-07-18 17:48:03.818 | DEBUG    | app.services.video:combine_videos:169 - processing clip 8: 1920x1080, current duration: 21.00s, remaining: 10.90s

2025-07-18 17:48:09.132 | DEBUG    | app.services.video:combine_videos:169 - processing clip 9: 3840x2160, current duration: 24.00s, remaining: 7.90s

2025-07-18 17:48:13.385 | DEBUG    | app.services.video:combine_videos:179 - resizing clip, source: 3840x2160, ratio: 1.78, target: 1920x1080, ratio: 1.78

2025-07-18 17:48:54.787 | DEBUG    | app.services.video:combine_videos:169 - processing clip 10: 1920x1080, current duration: 27.00s, remaining: 4.90s

2025-07-18 17:49:09.286 | DEBUG    | app.services.video:combine_videos:169 - processing clip 11: 1920x1080, current duration: 30.00s, remaining: 1.90s

2025-07-18 17:49:24.231 | INFO     | app.services.video:combine_videos:247 - starting clip merging process

2025-07-18 17:49:24.263 | INFO     | app.services.video:combine_videos:270 - merging clip 1/10, duration: 3.00s

2025-07-18 17:49:53.527 | INFO     | app.services.video:combine_videos:270 - merging clip 2/10, duration: 3.00s

2025-07-18 17:50:38.693 | INFO     | app.services.video:combine_videos:270 - merging clip 3/10, duration: 3.00s

2025-07-18 17:51:26.346 | INFO     | app.services.video:combine_videos:270 - merging clip 4/10, duration: 3.00s

2025-07-18 17:52:28.310 | INFO     | app.services.video:combine_videos:270 - merging clip 5/10, duration: 3.00s

2025-07-18 17:53:37.458 | INFO     | app.services.video:combine_videos:270 - merging clip 6/10, duration: 3.00s

2025-07-18 17:55:00.273 | INFO     | app.services.video:combine_videos:270 - merging clip 7/10, duration: 3.00s

2025-07-18 17:56:47.100 | INFO     | app.services.video:combine_videos:270 - merging clip 8/10, duration: 3.00s

2025-07-18 17:58:43.273 | INFO     | app.services.video:combine_videos:270 - merging clip 9/10, duration: 3.00s

2025-07-18 18:00:57.229 | INFO     | app.services.video:combine_videos:270 - merging clip 10/10, duration: 3.00s

2025-07-18 18:03:14.687 | INFO     | app.services.video:combine_videos:308 - video combining completed

2025-07-18 18:03:14.693 | INFO     | app.services.task:generate_final_videos:192 - 

## generating video: 1 => .\storage\tasks\b4233916-d32f-43ff-84fb-3f1df5f60091\final-1.mp4

2025-07-18 18:03:14.696 | INFO     | app.services.video:generate_video:376 - generating video: 1920 x 1080

2025-07-18 18:03:14.699 | INFO     | app.services.video:generate_video:377 -   ① video: .\storage\tasks\b4233916-d32f-43ff-84fb-3f1df5f60091\combined-1.mp4

2025-07-18 18:03:14.707 | INFO     | app.services.video:generate_video:378 -   ② audio: .\storage\tasks\b4233916-d32f-43ff-84fb-3f1df5f60091\audio.mp3

2025-07-18 18:03:14.710 | INFO     | app.services.video:generate_video:379 -   ③ subtitle: .\storage\tasks\b4233916-d32f-43ff-84fb-3f1df5f60091\subtitle.srt

2025-07-18 18:03:14.717 | INFO     | app.services.video:generate_video:380 -   ④ output: .\storage\tasks\b4233916-d32f-43ff-84fb-3f1df5f60091\final-1.mp4

2025-07-18 18:03:14.723 | INFO     | app.services.video:generate_video:395 -   ⑤ font: C:/Users/xiao/Downloads/MoneyPrinterTurbo-Portable-Windows-1.2.6/MoneyPrinterTurbo/resource/fonts/MicrosoftYaHeiBold.ttc

2025-07-18 18:09:46.652 | SUCCESS  | app.services.task:start:312 - task b4233916-d32f-43ff-84fb-3f1df5f60091 finished, generated 1 videos.

2025-07-18 18:09:46.942 | INFO     | __main__:<module>:970 - 视频生成完成
View Code

过程比较漫长,大概30分钟左右。

生成完成之后,会自动打开生成好的目录,比如:C:\Users\xiao\Downloads\MoneyPrinterTurbo-Portable-Windows-1.2.6\MoneyPrinterTurbo\storage\tasks\b4233916-d32f-43ff-84fb-3f1df5f60091

点击文件final-1.mp4播放

注意:这个视频文件,是最终效果,合成了字幕,声音等文件。

播放视频,全屏都可以。

查看视频文件分辨率,确实是1920×1080

本文参考链接:https://zhuanlan.zhihu.com/p/1909912021387944819
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值