2018-08-09 00:06:09 +08:00
2018-08-09 00:06:09 +08:00
2018-01-27 00:44:58 +08:00
2018-08-09 00:06:09 +08:00
2018-08-09 00:06:09 +08:00

Bililive-go

Build Status Go Report Card Github release Docker Pulls Bilibili

Bililive-go是一个跨平台、多直播间录制工具

image

例子

  • 本地
    ./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
    

支持网站

站点 url 支持情况
哔哩哔哩直播 live.bilibili.com 滋瓷
熊猫直播 www.panda.tv 滋瓷
战旗直播 www.zhanqi.tv 滋瓷
斗鱼直播 www.douyu.com 滋瓷
火猫直播 www.huomao.com 滋瓷
龙珠直播 longzhu.com 滋瓷
虎牙直播 www.huya.com 滋瓷
全民直播 www.quanmin.tv 滋瓷
CC直播 cc.163.com 滋瓷
一直播 www.yizhibo.com 滋瓷
twitch www.twitch.tv 滋瓷
OPENREC www.openrec.tv 滋瓷

依赖

下载&安装

获取&编译

$ go get github.com/hr3lxphr6j/bililive-go
$ $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

配置文件

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

API

API doc

S
Description
一个直播录制工具
Readme GPL-3.0
20 MiB
0 Stars 1 Watchers 0 Forks
Languages
Go 69.3%
TypeScript 28.1%
CSS 1.2%
JavaScript 0.7%
Shell 0.2%
Other 0.4%