update readme
This commit is contained in:
1 parent
e2bd41e49c
commit
b748e424b2
1 file changed
+12
-61
@@ -5,21 +5,10 @@
|
||||
[](https://hub.docker.com/r/chigusa/bililive-go/)
|
||||
[](https://space.bilibili.com/18578203/)
|
||||
|
||||
Bililive-go是一个跨平台、多直播间录制工具
|
||||
Bililive-go是一个支持多种直播平台的直播录制工具,运行在 CLI 上
|
||||
|
||||

|
||||
|
||||
|
||||
## 例子
|
||||
- 本地
|
||||
```
|
||||
./bililive-go -i https://www.panda.tv/10300 -i https://www.douyu.com/6655
|
||||
```
|
||||
- docker
|
||||
```
|
||||
docker run -v ~/Movies:/srv/bililive --rm chigusa/bililive-go -o /srv/bililive -i https://www.panda.tv/10300
|
||||
```
|
||||
|
||||
## 支持网站
|
||||
|
||||
<table>
|
||||
@@ -93,14 +82,15 @@ Bililive-go是一个跨平台、多直播间录制工具
|
||||
## 依赖
|
||||
* [ffmpeg](https://ffmpeg.org/)
|
||||
|
||||
## 下载&安装
|
||||
* 安装ffmpeg
|
||||
* Windows:[FFmpeg Builds](https://ffmpeg.zeranoe.com/builds/)
|
||||
* macOS: [FFmpeg Builds](https://ffmpeg.zeranoe.com/builds/) or `brew install ffmpeg`
|
||||
* Linux: 从对应的包管理器上安装或从源码构建
|
||||
|
||||
* 下载Bililive-go
|
||||
* [releases](https://github.com/hr3lxphr6j/bililive-go/releases)
|
||||
## 使用例子
|
||||
- 本地
|
||||
```
|
||||
./bililive-go -i https://www.panda.tv/10300 -i https://www.douyu.com/6655
|
||||
```
|
||||
- docker
|
||||
```
|
||||
docker run -v ~/Movies:/srv/bililive --rm chigusa/bililive-go -o /srv/bililive -i https://www.panda.tv/10300
|
||||
```
|
||||
|
||||
## 获取&编译
|
||||
```
|
||||
@@ -109,47 +99,8 @@ $ $GOPATH/src/github.com/hr3lxphr6j/bililive-go
|
||||
$ make
|
||||
```
|
||||
|
||||
## 使用
|
||||
```
|
||||
usage: BiliLive-go [<flags>]
|
||||
|
||||
A command-line live stream save tools.
|
||||
|
||||
Flags:
|
||||
--help Show context-sensitive help (also try --help-long and --help-man).
|
||||
--version Show application version.
|
||||
--debug Enable debug mode.
|
||||
-t, --interval=20 Interval of query live status
|
||||
-o, --output="./" Output file path.
|
||||
-i, --input=INPUT ... Live room urls
|
||||
-c, --config=CONFIG Config file.
|
||||
--enable-rpc Enable RPC server.
|
||||
--rpc-addr=":8080" RPC server listen port
|
||||
--rpc-token=RPC-TOKEN RPC server token.
|
||||
--enable-rpc-tls Enable TLS for RPC server
|
||||
--rpc-tls-cert-file=RPC-TLS-CERT-FILE
|
||||
Cert file for TLS on RPC
|
||||
--rpc-tls-key-file=RPC-TLS-KEY-FILE
|
||||
Key file for TLS on RPC
|
||||
|
||||
```
|
||||
|
||||
## 配置文件
|
||||
```yaml
|
||||
rpc:
|
||||
enable: true # 是否开启API
|
||||
port: 127.0.0.1:8080 # 监听地址
|
||||
token: "" # token
|
||||
tls: # tls配置
|
||||
enable: false
|
||||
cert_file: ""
|
||||
key_file: ""
|
||||
debug: false # debug模式
|
||||
interval: 15 # 直播间状态查询间隔时间(秒)
|
||||
out_put_path: ./ # 输出文件路径
|
||||
live_rooms: # 直播间url
|
||||
- https://www.panda.tv/10300
|
||||
```
|
||||
## Wiki
|
||||
[Wiki](https://github.com/hr3lxphr6j/bililive-go/wiki)
|
||||
|
||||
## API
|
||||
[API doc](https://github.com/hr3lxphr6j/bililive-go/blob/master/docs/API.md)
|
||||
Reference in new issue
Block a user