tools_batch_files 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/error.txt +140 -0
- package/excel/demo-video-demo.xlsx +0 -0
- package/excel/demo-video.xlsx +0 -0
- package/filterFail.js +40 -0
- package/index.js +412 -0
- package/log.txt +118826 -0
- package/package.json +19 -0
- package/utils/index.js +16 -0
- package//344/275/277/347/224/250/350/257/264/346/230/216.txt +12 -0
- package//347/202/271/346/210/221/346/211/271/351/207/217/344/270/212/344/274/240/350/247/206/351/242/221.bat +3 -0
package/package.json
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"name": "tools_batch_files",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "批处理视频工具",
|
5
|
+
"keywords": ["utils", "files", "video", "batch"],
|
6
|
+
"main": "index.js",
|
7
|
+
"scripts": {
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
9
|
+
"start": "node index.js"
|
10
|
+
},
|
11
|
+
"author": "z",
|
12
|
+
"license": "ISC",
|
13
|
+
"dependencies": {
|
14
|
+
"axios": "^1.6.8",
|
15
|
+
"ffmpeg": "^0.0.4",
|
16
|
+
"fluent-ffmpeg": "^2.1.2",
|
17
|
+
"xlsx": "^0.18.5"
|
18
|
+
}
|
19
|
+
}
|
package/utils/index.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
const crypto = require('crypto');
|
2
|
+
|
3
|
+
function generateUniqueHash() {
|
4
|
+
// 生成一个随机的 UUID
|
5
|
+
const uuid = crypto.randomBytes(16).toString('hex');
|
6
|
+
|
7
|
+
// 使用 SHA256 算法计算哈希值
|
8
|
+
const hash = crypto.createHash('sha256').update(uuid).digest('hex');
|
9
|
+
|
10
|
+
return hash;
|
11
|
+
}
|
12
|
+
|
13
|
+
const uniqueHash = generateUniqueHash();
|
14
|
+
|
15
|
+
module.exports = generateUniqueHash;
|
16
|
+
console.log('Unique hash:', uniqueHash);
|
@@ -0,0 +1,12 @@
|
|
1
|
+
1.点击“点我批量上传视频.bat”开始脚本
|
2
|
+
2.log.txt -----普通运行日志
|
3
|
+
3.error.txt-----错误日志(每一条错误会对应一个hash.txt的文件)
|
4
|
+
4.video内为源视频(测试用,跑生产直接删掉此文件夹,把video10000-->改为video)
|
5
|
+
5.video10000 1w条原视频
|
6
|
+
6.excel/demo-video.xlsx 为视频列表
|
7
|
+
7.D:\视频脚本\output\screenshots 截图文件夹(上传后自动删除)
|
8
|
+
8.D:\视频脚本\output\video 压缩文件文件夹
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|