精简提交历史记录
This commit is contained in:
3
apps/bililive-go/0.7.19/.env.sample
Normal file
3
apps/bililive-go/0.7.19/.env.sample
Normal file
@@ -0,0 +1,3 @@
|
||||
CONTAINER_NAME="bililive-go"
|
||||
PANEL_APP_PORT_HTTP="40079"
|
||||
DATA_PATH="./data"
|
||||
17
apps/bililive-go/0.7.19/data.yml
Normal file
17
apps/bililive-go/0.7.19/data.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40079
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
18
apps/bililive-go/0.7.19/docker-compose.yml
Normal file
18
apps/bililive-go/0.7.19/docker-compose.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
version: '3'
|
||||
services:
|
||||
bililive-go:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:8080"
|
||||
volumes:
|
||||
- "${DATA_PATH}:/srv/bililive"
|
||||
image: chigusa/bililive-go:v0.7.19
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
209
apps/bililive-go/README.md
Normal file
209
apps/bililive-go/README.md
Normal file
@@ -0,0 +1,209 @@
|
||||
# Bililive-go
|
||||
[](https://github.com/hr3lxphr6j/bililive-go/actions/workflows/tests.yaml)
|
||||
[](https://goreportcard.com/report/github.com/hr3lxphr6j/bililive-go)
|
||||
[](https://github.com/hr3lxphr6j/bililive-go/releases/latest)
|
||||
[](https://hub.docker.com/r/chigusa/bililive-go/)
|
||||
[](https://space.bilibili.com/18578203/)
|
||||
|
||||
Bililive-go是一个支持多种直播平台的直播录制工具
|
||||
|
||||

|
||||
|
||||
## 支持网站
|
||||
|
||||
<table>
|
||||
<tr align="center">
|
||||
<th>站点</th>
|
||||
<th>url</th>
|
||||
<th>支持情况</th>
|
||||
<th>cookie</th>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>Acfun直播</td>
|
||||
<td>live.acfun.cn</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>哔哩哔哩直播</td>
|
||||
<td>live.bilibili.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td>滋瓷</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>战旗直播</td>
|
||||
<td>www.zhanqi.tv</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>斗鱼直播</td>
|
||||
<td>www.douyu.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>火猫直播</td>
|
||||
<td>www.huomao.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>龙珠直播</td>
|
||||
<td>longzhu.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>虎牙直播</td>
|
||||
<td>www.huya.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>CC直播</td>
|
||||
<td>cc.163.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>一直播</td>
|
||||
<td>www.yizhibo.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>twitch</td>
|
||||
<td>www.twitch.tv</td>
|
||||
<td>TODO</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>OPENREC</td>
|
||||
<td>www.openrec.tv</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>企鹅电竞</td>
|
||||
<td>egame.qq.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>浪live</td>
|
||||
<td>play.lang.live & www.lang.live</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>花椒</td>
|
||||
<td>www.huajiao.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>抖音直播</td>
|
||||
<td>live.douyin.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td>滋瓷</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>猫耳</td>
|
||||
<td>fm.missevan.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>克拉克拉</td>
|
||||
<td>www.hongdoufm.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>快手</td>
|
||||
<td>live.kuaishou.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td>滋瓷</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>YY直播</td>
|
||||
<td>www.yy.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>微博直播</td>
|
||||
<td>weibo.com</td>
|
||||
<td>滋瓷</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
### cookie 在 config.yml 中的设置方法
|
||||
|
||||
cookie的设置以域名为单位。比如想在录制抖音直播时使用 cookie,那么 config.yml 中可以像下面这样写:
|
||||
```
|
||||
cookies:
|
||||
live.douyin.com: __ac_nonce=123456789012345678903;name=value
|
||||
```
|
||||
|
||||
## Grafana 面板
|
||||
|
||||
> 请自行部署 prometheus 和 grafana
|
||||
|
||||

|
||||
|
||||
## 依赖
|
||||
* [ffmpeg](https://ffmpeg.org/)
|
||||
|
||||
## 使用例子
|
||||
- 本地
|
||||
```
|
||||
./bililive-go -i https://live.bilibili.com/1030 -i https://www.douyu.com/6655
|
||||
```
|
||||
- docker
|
||||
```
|
||||
docker run --restart=always -v ~/Videos:/srv/bililive -p 8080:8080 -d chigusa/bililive-go
|
||||
```
|
||||
|
||||
## 开发环境搭建(linux系统)
|
||||
```
|
||||
一、环境准备
|
||||
1. 前端环境
|
||||
1)前往https://nodejs.org/zh-cn/下载当前版本node(18.12.1)
|
||||
2)命令行运行 node -v 若控制台输出版本号则前端环境搭建成功
|
||||
2.后端环境
|
||||
1)下载golang安装 版本号1.19
|
||||
国际: https://golang.org/dl/
|
||||
国内: https://golang.google.cn/dl/
|
||||
2)命令行运行 go 若控制台输出各类提示命令 则安装成功 输入 go version 确认版本
|
||||
3.安装 ffmpeg (以centos7为例)
|
||||
1) yum install -y epel-release rpm
|
||||
2) rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
|
||||
3) yum repolist
|
||||
4) rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
|
||||
5) rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
|
||||
6) yum repolist
|
||||
7) yum install -y ffmpeg
|
||||
二、克隆代码并编译(linux环境)
|
||||
1. git clone https://github.com/hr3lxphr6j/bililive-go.git
|
||||
2. cd bililive-go
|
||||
3. make build-web
|
||||
4. make
|
||||
三、linux编译其他环境(以windows 为例)
|
||||
1. GOOS=windows GOARCH=amd64 CGO_ENABLED=0 UPX_ENABLE=0 TAGS=dev ./src/hack/build.sh bililive
|
||||
2.如果不需要调试,可以改成
|
||||
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 UPX_ENABLE=0 TAGS=release ./src/hack/build.sh bililive
|
||||
```
|
||||
|
||||
## Wiki
|
||||
[Wiki](https://github.com/hr3lxphr6j/bililive-go/wiki)
|
||||
|
||||
## API
|
||||
[API doc](https://github.com/hr3lxphr6j/bililive-go/blob/master/docs/API.md)
|
||||
|
||||
## 参考
|
||||
- [you-get](https://github.com/soimort/you-get)
|
||||
- [ykdl](https://github.com/zhangn1985/ykdl)
|
||||
- [youtube-dl](https://github.com/ytdl-org/youtube-dl)
|
||||
20
apps/bililive-go/data.yml
Normal file
20
apps/bililive-go/data.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
name: Bililive-go
|
||||
tags:
|
||||
- 工具
|
||||
title: 一个支持多种直播平台的直播录制工具
|
||||
type: 工具
|
||||
description: 一个支持多种直播平台的直播录制工具
|
||||
additionalProperties:
|
||||
key: bililive-go
|
||||
name: Bililive-go
|
||||
tags:
|
||||
- Tool
|
||||
shortDescZh: 一个支持多种直播平台的直播录制工具
|
||||
shortDescEn: A live recording tool that supports multiple live streaming platforms
|
||||
type: tool
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
recommend: 0
|
||||
website: https://github.com/hr3lxphr6j/bililive-go
|
||||
github: https://github.com/hr3lxphr6j/bililive-go
|
||||
document: https://github.com/hr3lxphr6j/bililive-go/wiki
|
||||
3
apps/bililive-go/latest/.env.sample
Normal file
3
apps/bililive-go/latest/.env.sample
Normal file
@@ -0,0 +1,3 @@
|
||||
CONTAINER_NAME="bililive-go"
|
||||
PANEL_APP_PORT_HTTP="40079"
|
||||
DATA_PATH="./data"
|
||||
17
apps/bililive-go/latest/data.yml
Normal file
17
apps/bililive-go/latest/data.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40079
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
18
apps/bililive-go/latest/docker-compose.yml
Normal file
18
apps/bililive-go/latest/docker-compose.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
version: '3'
|
||||
services:
|
||||
bililive-go:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:8080"
|
||||
volumes:
|
||||
- "${DATA_PATH}:/srv/bililive"
|
||||
image: chigusa/bililive-go:latest
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
BIN
apps/bililive-go/logo.png
Normal file
BIN
apps/bililive-go/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
Reference in New Issue
Block a user