Skip to content

About

AI video workbench: Toonflow short-drama studio + classic topic shorts behind a single gateway.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

MoneyPrinterTurbo

Stars Issues License

简体中文 | English

统一网关下的 AI 视频工作台:Toonflow 短剧工坊 + Studio 主题短视频。

这是什么

一个对外端口(默认 9088)同时提供:

入口 地址 能力
门户 http://127.0.0.1:9088/ 模块导航
Toonflow http://127.0.0.1:9088/toonflow/ 小说 → 剧本 → 资产 → 分镜 → 成片(官方 Toonflow-app 嵌入)
Studio http://127.0.0.1:9088/studio/ 主题 / 文案 → 素材 → 字幕 → BGM → 高清短视频
WebUI http://127.0.0.1:9088/webui/ Streamlit 经典配置界面
API http://127.0.0.1:9088/docs FastAPI /api/v1

内部服务不对外暴露:Streamlit 18501、Toonflow-app 11588,由网关反代。

功能

  • Toonflow 短剧工坊:vendor/toonflow-app 完整嵌入,功能保持上游;本仓库只套 Atelier 深色皮肤。出图 / 视频模型在 Toonflow 设置页配置,与 config.toml 相互独立。
  • Studio 经典短视频:AI 生成或粘贴文案,Pexels / Pixabay / 本地素材,批量出片,字幕字体 / 位置 / 描边可调。
  • 统一网关:start.sh 一键拉起 API、WebUI、Toonflow。
  • 多模型:OpenAI、Moonshot、Azure、通义千问、DeepSeek、Grok (xAI)、Gemini、Ollama、g4f、one-api、文心一言、Pollinations。
  • 配音:Azure TTS v1/v2、SiliconFlow;字幕 edge / whisper。

文档:

环境

  • Python 3.11,建议 4 核 / 4GB 内存
  • macOS 11+ / Windows 10+ / Linux
  • Toonflow 需要 Node.js 20 LTS(首次 scripts/toonflow-app.sh install)
  • ImageMagick、ffmpeg(后者多数情况会自动下载)

快速开始

git clone https://github.com/ddsyw/MoneyPrinterTurbo.git
cd MoneyPrinterTurbo
cp config.example.toml config.toml   # 填写 LLM 与素材 API Key
pip install -r requirements.txt
bash start.sh                        # Windows: start.bat

停止:bash stop.sh。首次 Toonflow 账号 admin / admin123。

配置项说明见 config.example.toml。国内用户 LLM 可用 DeepSeek 或 Moonshot(无需 VPN)。素材源需 Pexels 或 Pixabay Key。

Docker

docker compose up

访问 http://127.0.0.1:9088/ 。镜像内 Toonflow(Node)可能不可用,短剧工坊建议本机 start.sh。

仅 API / 仅 WebUI

python main.py          # 网关 + API,默认 9088
sh webui.sh             # 独立 Streamlit(不经过网关)

手动依赖

conda create -n MoneyPrinterTurbo python=3.11
conda activate MoneyPrinterTurbo
pip install -r requirements.txt

ImageMagick:

  • macOS:brew install imagemagick
  • Ubuntu:sudo apt-get install imagemagick
  • Windows:安装 静态库版本,并把 config.toml 的 imagemagick_path 指到 magick.exe

配音与字幕

音色列表:docs/voice-list.txt

config.toml 中 subtitle_provider:

  • edge:快,默认
  • whisper:慢但更稳,需 faster-whisper-large-v3(约 3GB),解压到 models/whisper-large-v3/
  • 留空:不烧字幕

BGM 放 resource/songs/,字幕字体放 resource/fonts/。

常见问题

No ffmpeg exe could be found
从 https://www.gyan.dev/ffmpeg/builds/ 下载后设置:

[app]
ffmpeg_path = "C:\\Users\\yourname\\Downloads\\ffmpeg.exe"

ImageMagick policy 拒绝 @ 临时文件
编辑 /etc/ImageMagick-X/policy.xml,把 pattern="@" 的 rights="none" 改为 rights="read|write"。

Too many open files

ulimit -n 10240

Toonflow 嵌入页空白

bash scripts/toonflow-app.sh status
bash scripts/toonflow-app.sh start

Windows 原生模块编译失败时用 Node 20 LTS,必要时安装 VS Build Tools(桌面 C++)。详见 docs/toonflow-upstream.md。

反馈

Issues · Pull requests

许可证

MIT

About

AI video workbench: Toonflow short-drama studio + classic topic shorts behind a single gateway.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages