只需提供一個(gè)視頻 主題 或 關(guān)鍵詞 ,就可以全自動(dòng)生成視頻文案、視頻素材、視頻字幕、視頻背景音樂(lè),然后合成一個(gè)高清的短視頻。
一:功能特性
完整的 MVC架構(gòu),代碼 結(jié)構(gòu)清晰,易于維護(hù),支持 API 和 Web界面
支持視頻文案 AI自動(dòng)生成,也可以自定義文案
支持多種 高清視頻 尺寸
豎屏 9:16,1080x1920
橫屏 16:9,1920x1080
支持 批量視頻生成,可以一次生成多個(gè)視頻,然后選擇一個(gè)最滿意的
支持 視頻片段時(shí)長(zhǎng)設(shè)置,方便調(diào)節(jié)素材切換頻率
支持 中文 和 英文 視頻文案
支持 多種語(yǔ)音 合成
支持 字幕生成,可以調(diào)整 字體、位置、顏色、大小,同時(shí)支持字幕描邊設(shè)置
支持 背景音樂(lè),隨機(jī)或者指定音樂(lè)文件,可設(shè)置背景音樂(lè)音量
視頻素材來(lái)源 高清,而且 無(wú)版權(quán)
支持 OpenAI、moonshot、Azure、gpt4free、one-api、通義千問(wèn)、Google Gemini、Ollama 等多種模型接入
?二:本地部署
1、克隆代碼
git clone https://github.com/harry0703/MoneyPrinterTurbo.git
cd MoneyPrinterTurbo
2、創(chuàng)建虛擬環(huán)境
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
需要填寫(xiě)文本生成模型的API和視頻庫(kù)的API,在這里我們選用了Moonshot和Pexels以方便國(guó)內(nèi)用戶使用。
Moonshot API申請(qǐng)地址:月之暗面API申請(qǐng)地址
Pexels素材庫(kù)申請(qǐng)地址:免費(fèi)素材圖片 (pexels.com)
注冊(cè)登錄并獲取API。
三:運(yùn)行
conda activate MoneyPrinterTurbo
sh webui.sh
四:?jiǎn)栴}解析
1、VPN問(wèn)題
failed to download videos, maybe the network is not available.
if you are in China, please use a VPN.
這個(gè)大概率是網(wǎng)絡(luò)原因,無(wú)法訪問(wèn)境外的服務(wù),請(qǐng)使用VPN解決。在選用音頻設(shè)置的時(shí)候盡量選用中文,因?yàn)橛⑽哪P托枰瓑Α?/p>
2、ImageMagick無(wú)權(quán)限寫(xiě)入文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-854411.html
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,并修改為:文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-854411.html
“policy domain=”path“ rights=”read,write“ pattern=”@“”
到了這里,關(guān)于一個(gè)開(kāi)源的全自動(dòng)視頻生成軟件MoneyPrinterTurbo的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!