bililive-cli 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -12
- package/lib/{chunked-exec-D0BsLh9V.js → chunked-exec-DzOIaGn1.js} +5 -5
- package/lib/index--sFOOs5S.js +204357 -0
- package/lib/{index-vxC6dSfO.js → index-El6sDas6.js} +18057 -11939
- package/lib/index.cjs +558 -284
- package/lib/{linux-BGjRnnAR.js → linux-Tq1fWuR2.js} +105 -31
- package/lib/{macos-BaatW38k.js → macos-CAOfJ0Q9.js} +2 -2
- package/lib/{windows-B0oX8Um0.js → windows-DgdPRZEm.js} +2 -2
- package/package.json +16 -11
- package/lib/bili-BLevGPF2.js +0 -76000
- package/lib/bili-CQgv-F-q.js +0 -76007
- package/lib/index-BVMD1wRX.js +0 -43797
- package/lib/linux-C6SziuFt.js +0 -3515
- package/lib/v4-D4KzFnn8.js +0 -67
package/README.md
CHANGED
|
@@ -2,20 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
[biliLive-tools](https://github.com/renmu123/biliLive-tools)的命令行版本
|
|
4
4
|
|
|
5
|
-
这是一个用于 B 站录播的一站式工具,支持弹幕转换与视频压制并上传至B站,支持录播姬与blrec的webhook。
|
|
6
|
-
如果你是录播man正在寻找xml弹幕转换、弹幕压制、webhook上传工具,如果你是切片man正在寻找下载b站视频工具,如果你厌倦了b站的多p上传,你可以来试试本软件。
|
|
7
|
-
做这款工具的初衷是为了解决录播工具的碎片化,往往想完整处理一场带有弹幕的录播要使用多个软件的配合,一些工具只有CLI,加大了使用难度。
|
|
8
|
-
|
|
9
5
|
# 安装
|
|
10
6
|
|
|
11
7
|
`npm i bililive-cli -g`
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
CLI是GUI的拓展,使用前需要设置相关目录,由于配置文件很多且复杂,请在GUI中生成并进行修改配置后复制到CLI所配置的目录,或直接将目录设置为GUI的配置目录。
|
|
16
|
-
暂时只支持webhook相关的指令,也即启动webhook server,可以避免启动electron带来的消耗。
|
|
9
|
+
或者安装二进制[文件](https://github.com/renmu123/biliLive-tools/releases)
|
|
17
10
|
|
|
18
|
-
|
|
11
|
+
# 使用
|
|
19
12
|
|
|
20
13
|
## 配置
|
|
21
14
|
|
|
@@ -25,8 +18,8 @@ CLI是GUI的拓展,使用前需要设置相关目录,由于配置文件很
|
|
|
25
18
|
```js
|
|
26
19
|
{
|
|
27
20
|
port: 18010, // 启动端口,如果不希望与客户端的冲突,请修改为其他端口号
|
|
28
|
-
host: "127.0.0.1", // host
|
|
29
|
-
configFolder: "", //
|
|
21
|
+
host: "127.0.0.1", // host,如果需要暴露出去,可以修改为0.0.0.0
|
|
22
|
+
configFolder: "config", // 配置文件夹
|
|
30
23
|
ffmpegPath: "ffmpeg.exe", // ffmpeg二进制路径
|
|
31
24
|
ffprobePath: "ffprobe.exe", // ffprobe二进制路径
|
|
32
25
|
danmakuFactoryPath: "DanmakuFactory.exe", // DanmakuFactory二进制路径
|
|
@@ -36,4 +29,21 @@ CLI是GUI的拓展,使用前需要设置相关目录,由于配置文件很
|
|
|
36
29
|
|
|
37
30
|
## 运行
|
|
38
31
|
|
|
39
|
-
|
|
32
|
+
```bash
|
|
33
|
+
Usage: biliLive server
|
|
34
|
+
|
|
35
|
+
启动web服务器
|
|
36
|
+
|
|
37
|
+
Options:
|
|
38
|
+
-c, --config 配置文件
|
|
39
|
+
-h, --host host,覆盖配置文件的参数,可选
|
|
40
|
+
-p, --port port,覆盖配置文件的参数,可选
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## webui
|
|
44
|
+
|
|
45
|
+
鉴权密钥为 `config/appConfig.json` 的 `passKey` 参数,或者设置 `BILILIVE_TOOLS_PASSKEY` 环境变量
|
|
46
|
+
|
|
47
|
+
你可以选择线上页面:https://github.com/renmu123/biliLive-webui
|
|
48
|
+
|
|
49
|
+
或者也可以使用[官方项目](https://github.com/renmu123/biliLive-webui)自行部署
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var require$$1 = require('node:util');
|
|
4
|
+
var require$$1$1 = require('node:child_process');
|
|
5
|
+
var require$$0 = require('node:url');
|
|
6
6
|
|
|
7
7
|
function chunkify(iterable, chunkSize) {
|
|
8
8
|
if (typeof iterable[Symbol.iterator] !== 'function') {
|
|
@@ -43,12 +43,12 @@ function chunkify(iterable, chunkSize) {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
const pExecFile =
|
|
46
|
+
const pExecFile = require$$1.promisify(require$$1$1.execFile);
|
|
47
47
|
|
|
48
48
|
async function chunkedExec(binary, paths, maxPaths) {
|
|
49
49
|
for (const chunk of chunkify(paths, maxPaths)) {
|
|
50
50
|
// eslint-disable-next-line no-await-in-loop
|
|
51
|
-
await pExecFile(
|
|
51
|
+
await pExecFile(require$$0.fileURLToPath(binary), chunk);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|