0
点赞
收藏
分享

微信扫一扫

视频汇聚/安防视频监控云平台EasyCVR云端录像播放与下载的接口调用方法

Fifi的天马行空 2天前 阅读 2

只需提供一个视频 主题 或 关键词 ,就可以全自动生成视频文案、视频素材、视频字幕、视频背景音乐,然后合成一个高清的短视频。

一:功能特性

完整的 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=”@“”
举报

相关推荐

0 条评论