tools_batch_files
v1.0.40
Published
批处理视频工具
Downloads
49
Readme
批量上传脚本
1.目录结构
├─ index.js 处理视频的主函数
│ log.txt 日志
│ 点我批量上传视频.bat 可执行文件
│
├─excel\excel.xlsx 表格文件
│
├─imgs 图片物料
│ miz-watermark.png 水印图片
│
├─output 产物输出文件夹
│
├─src
│ filterFail.js 处理图片的函数
│ index.js
│
├─utils 工具
│ index.js
│
└─video 源文件文件夹
2.使用说明
前置条件
- node 版本 v16.20.1
- 已安装最新版本ffmpeg 7.0+
- 全局安装包 tools_batch_files
npm i tools_batch_files -g
启动脚本
- 拖动.bat文件到需要处理的目录下(图片或视频)。
- 确保excel文件存在
- 点击“点我批量上传xx.bat”开始脚本
- error.txt和log.txt-----错误日志和普通日志。
功能
1. 批量处理视频
- 压缩视频 720p
- 压缩视频(带水印)
- 5截图
- 5截图(水印)
- 打包
2. 批量处理图片
- 生成预览图 1280
- 生成水印预览图
3.下个版本的优化点
- 尝试在内存中处理 stream