Simply provide a topic or keyword for a video, and it will automatically generate the video copy, video materials, video subtitles, and video background music before synthesizing a high-definition short video.


Due to the deployment and usage of this project, there is a certain threshold for some beginner users. We would like to express our special thanks to
RecCloud (AI-Powered Multimedia Service Platform) for providing a free AI Video Generator service based on this
project. It allows for online use without deployment, which is very convenient.

API
and Web interface1080x19201920x1080font, position, color, size, and also
supports subtitle outliningbackground music volume❓How to Use the Free OpenAI GPT-3.5 Model?
| ▶️ How to Add Fun to Your Life | ▶️ What is the Meaning of Life |
|---|---|
| ▶️ What is the Meaning of Life | ▶️ Why Exercise |
|---|---|
git clone https://github.com/harry0703/MoneyPrinterTurbo.git
config.example.toml file and rename it to config.tomlconfig.toml file to configure pexels_api_keys and llm_provider, and according to
the llm_provider's service provider, set up the corresponding API KeyGPT-4.0 or GPT-3.5, you need an API Key from OpenAI. If you don't have one, you can set llm_provider
to g4f (a free-to-use GPT library https://github.com/xtekky/gpt4free)If you haven't installed Docker, please install it first https://www.docker.com/products/docker-desktop/ If you are using a Windows system, please refer to Microsoft's documentation:
cd MoneyPrinterTurbo
docker-compose up
Open your browser and visit http://0.0.0.0:8501
Open your browser and visit http://0.0.0.0:8080/docs Or http://0.0.0.0:8080/redoc
It is recommended to create a Python virtual environment using conda
git clone https://github.com/harry0703/MoneyPrinterTurbo.git
cd MoneyPrinterTurbo
conda create -n MoneyPrinterTurbo python=3.10
conda activate MoneyPrinterTurbo
pip install -r requirements.txt
config.toml configuration file, set imagemagick_path to your actual installation path (if you didn't
change the path during installation, just uncomment it)brew install imagemagick
sudo apt-get install imagemagick
sudo yum install ImageMagick
Note that you need to execute the following commands in the root directory of the MoneyPrinterTurbo project
conda activate MoneyPrinterTurbo
webui.bat
conda activate MoneyPrinterTurbo
sh webui.sh
After launching, the browser will open automatically
python main.py
After launching, you can view the API documentation at http://127.0.0.1:8080/docs and directly test the interface
online for a quick experience.
A list of all supported voices can be viewed here: Voice List
Currently, there are 2 ways to generate subtitles:
You can switch between them by modifying the subtitle_provider in the config.toml configuration file
It is recommended to use edge mode, and switch to whisper mode if the quality of the subtitles generated is not
satisfactory.
Note: If left blank, it means no subtitles will be generated.
Download whisper
whisper model can be downloaded from HuggingFace: https://huggingface.co/openai/whisper-large-v3/tree/mainAfter downloading the model to local machine, copy the whole folder and put it into the following path: .\MoneyPrinterTurbo\models
This is what the final path should look like: .\MoneyPrinterTurbo\models\whisper-large-v3
MoneyPrinterTurbo
├─models
│ └─whisper-large-v3
│ config.json
│ model.bin
│ preprocessor_config.json
│ tokenizer.json
│ vocabulary.json
Background music for videos is located in the project's resource/songs directory.
The current project includes some default music from YouTube videos. If there are copyright issues, please delete them.
Fonts for rendering video subtitles are located in the project's resource/fonts directory, and you can also add your
own fonts.
OpenAI has announced that ChatGPT with 3.5 is now free, and developers have wrapped it into an API for direct usage.
Ensure you have Docker installed and running. Execute the following command to start the Docker service:
docker run -p 3040:3040 missuo/freegpt35
Once successfully started, modify the config.toml configuration as follows:
llm_provider to openaiopenai_api_key with any value, for example, '123456'openai_base_url to http://localhost:3040/v1/openai_model_name to gpt-3.5-turboNormally, ffmpeg will be automatically downloaded and detected. However, if your environment has issues preventing automatic downloads, you may encounter the following error:
RuntimeError: No ffmpeg exe could be found.
Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.
In this case, you can download ffmpeg from https://www.gyan.dev/ffmpeg/builds/, unzip it, and set ffmpeg_path to your
actual installation path.
[app]
# Please set according to your actual path, note that Windows path separators are \\
ffmpeg_path = "C:\\Users\\harry\\Downloads\\ffmpeg.exe"
failed to generate audio, maybe the network is not available.
if you are in China, please use a VPN.
failed to download videos, maybe the network is not available.
if you are in China, please use a VPN.
This is likely due to network issues preventing access to foreign services. Please use a VPN to resolve this.
example configuration provided download address to
install https://imagemagick.org/archive/binaries/ImageMagick-7.1.1-30-Q16-x64-static.exe, using the static libraryFor Linux systems, you can manually install it, refer to https://cn.linux-console.net/?p=16978
Thanks to @wangwenqiao666 for their research and exploration
This project is based on https://github.com/FujiwaraChoki/MoneyPrinter and has been refactored with a lot of optimizations and added functionalities. Thanks to the original author for their spirit of open source.
Click to view the LICENSE file
Content type
Image
Digest
sha256:51a0c4b9e…
Size
755.2 MB
Last updated
almost 2 years ago
docker pull oryzen/moneyprinterturbo:4530abc24010f66c757af14f2cefe52a0f032881