支持 Stream Rec

This commit is contained in:
萌森 2024-07-27 18:10:05 +08:00
parent 238fbcc957
commit 9b9b692df6
15 changed files with 96 additions and 53 deletions

2
.github/README.md vendored
View File

@ -103,7 +103,7 @@
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/siyuan/logo.png" width="22"/> | SiYuan | https://b3log.org/siyuan/ | 【思源笔记】一款隐私优先、自托管、完全开源的个人知识管理软件 | | | 🟢 | <img height="22" src="https://file.lifebus.top/apps/siyuan/logo.png" width="22"/> | SiYuan | https://b3log.org/siyuan/ | 【思源笔记】一款隐私优先、自托管、完全开源的个人知识管理软件 | |
| 🔴 | | SpeedTest | https://www.speedtest.net/ | 互联网速度测试 | SpeedTest | | 🔴 | | SpeedTest | https://www.speedtest.net/ | 互联网速度测试 | SpeedTest |
| 🔴 | | SpeedTest-Tracker | https://docs.speedtest-tracker.dev/ | Speedtest Tracker 是一款自托管互联网性能跟踪应用程序,可针对 Ookla 的 Speedtest 服务运行速度测试检查 | | | 🔴 | | SpeedTest-Tracker | https://docs.speedtest-tracker.dev/ | Speedtest Tracker 是一款自托管互联网性能跟踪应用程序,可针对 Ookla 的 Speedtest 服务运行速度测试检查 | |
| 🔴 | | Stream-Rec | https://github.com/hua0512/stream-rec | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | | | 🟢 | <img height="22" src="https://file.lifebus.top/apps/stream-rec/logo.png" width="22"/> | Stream-Rec | https://github.com/hua0512/stream-rec/ | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/transmission/logo.png" width="22"/> | Transmission | https://transmissionbt.com/ | 快速、简单、免费的 Bittorrent 客户端 | | | 🟢 | <img height="22" src="https://file.lifebus.top/apps/transmission/logo.png" width="22"/> | Transmission | https://transmissionbt.com/ | 快速、简单、免费的 Bittorrent 客户端 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/uptime-kuma/logo.png" width="22"/> | Uptime Kuma | https://uptime.kuma.pet/ | 自托管监控工具 | | | 🟢 | <img height="22" src="https://file.lifebus.top/apps/uptime-kuma/logo.png" width="22"/> | Uptime Kuma | https://uptime.kuma.pet/ | 自托管监控工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/umami/logo.png" width="22"/> | Umami | https://umami.is/ | 为速度和效率而构建的网站分析 | | | 🟢 | <img height="22" src="https://file.lifebus.top/apps/umami/logo.png" width="22"/> | Umami | https://umami.is/ | 为速度和效率而构建的网站分析 | |

View File

@ -89,7 +89,7 @@
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/siyuan/logo.png" width="22"/> | SiYuan | https://b3log.org/siyuan/ | 【思源笔记】一款隐私优先、自托管、完全开源的个人知识管理软件 | | | 🟢 | <img height="22" src="https://file.lifebus.top/apps/siyuan/logo.png" width="22"/> | SiYuan | https://b3log.org/siyuan/ | 【思源笔记】一款隐私优先、自托管、完全开源的个人知识管理软件 | |
| 🔴 | | SpeedTest | https://www.speedtest.net/ | 互联网速度测试 | SpeedTest | | 🔴 | | SpeedTest | https://www.speedtest.net/ | 互联网速度测试 | SpeedTest |
| 🔴 | | SpeedTest-Tracker | https://docs.speedtest-tracker.dev/ | Speedtest Tracker 是一款自托管互联网性能跟踪应用程序,可针对 Ookla 的 Speedtest 服务运行速度测试检查 | | | 🔴 | | SpeedTest-Tracker | https://docs.speedtest-tracker.dev/ | Speedtest Tracker 是一款自托管互联网性能跟踪应用程序,可针对 Ookla 的 Speedtest 服务运行速度测试检查 | |
| 🔴 | | Stream-Rec | https://github.com/hua0512/stream-rec | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | | | 🟢 | <img height="22" src="https://file.lifebus.top/apps/stream-rec/logo.png" width="22"/> | Stream-Rec | https://github.com/hua0512/stream-rec/ | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/transmission/logo.png" width="22"/> | Transmission | https://transmissionbt.com/ | 快速、简单、免费的 Bittorrent 客户端 | | | 🟢 | <img height="22" src="https://file.lifebus.top/apps/transmission/logo.png" width="22"/> | Transmission | https://transmissionbt.com/ | 快速、简单、免费的 Bittorrent 客户端 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/uptime-kuma/logo.png" width="22"/> | Uptime Kuma | https://uptime.kuma.pet/ | 自托管监控工具 | | | 🟢 | <img height="22" src="https://file.lifebus.top/apps/uptime-kuma/logo.png" width="22"/> | Uptime Kuma | https://uptime.kuma.pet/ | 自托管监控工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/umami/logo.png" width="22"/> | Umami | https://umami.is/ | 为速度和效率而构建的网站分析 | | | 🟢 | <img height="22" src="https://file.lifebus.top/apps/umami/logo.png" width="22"/> | Umami | https://umami.is/ | 为速度和效率而构建的网站分析 | |

View File

@ -15,13 +15,13 @@ services:
- 1panel-network - 1panel-network
ports: ports:
- ${PANEL_APP_PORT_HTTP}:12555 - ${PANEL_APP_PORT_HTTP}:12555
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes: volumes:
- ${STREAM_REC_ROOT_PATH}/records:/opt/records - ${STREAM_REC_ROOT_PATH}/records:/opt/records
- ${STREAM_REC_ROOT_PATH}/download:/download - ${STREAM_REC_ROOT_PATH}/download:/download
environment: environment:
- TZ=Asia/Shanghai
- LOG_LEVEL=INFO - LOG_LEVEL=INFO
- DB_PATH=/opt/records - DB_PATH=/opt/records
- DOWNLOAD_PATH=/download - DOWNLOAD_PATH=/download
env_file:
- .env

View File

@ -2,7 +2,7 @@
Stream-rec 是一个自动录制各种直播平台的工具。 Stream-rec 是一个自动录制各种直播平台的工具。
![Stream-Rec](https://github.com/hua0512/stream-rec-front/blob/master/docs/zh/dashboard.png) ![Stream-Rec](https://file.lifebus.top/imgs/stream_rec_cover.png)
## 特性 ## 特性
@ -24,11 +24,43 @@ Stream-rec 是一个自动录制各种直播平台的工具。
| 虎牙 | ✅ | ✅ | `https://www.huya.com/{直播间}` | | 虎牙 | ✅ | ✅ | `https://www.huya.com/{直播间}` |
| PandaTV | ✅ | ✅ | `https://www.pandalive.co.kr/live/play/{直播间}` | | PandaTV | ✅ | ✅ | `https://www.pandalive.co.kr/live/play/{直播间}` |
| Twitch | ✅ | ✅ | `https://www.twitch.tv/{直播间}` | | Twitch | ✅ | ✅ | `https://www.twitch.tv/{直播间}` |
| AfreecaTv | ❌ | ❌ | |
| Bilibili | ❌ | ❌ | |
| Niconico | ❌ | ❌ | |
| Youtube | ❌ | ❌ | |
## 安装说明 ## 安装说明
当前项目为 Stream-Rec 的后端部分,请配合前端使用。 > 默认账户
>
> 用户名stream-rec
>
> 密码stream-rec 或 `登录密码 (初始化)` 配置
### 必须修改配置
+ `WebSocket API 地址`
默认值:`ws://stream-rec-backend:12555/live/update`
需要获取:
+ 宿主机 IP 地址
+ 配置项 `API 端口`, 默认值:`12555`
填写格式:`ws://{宿主机 IP 地址}:{API 端口}/live/update`
### 可修改配置
+ `NextAuth 服务器地址`
默认值:`http://localhost:15275/`
需要获取:
+ 宿主机 IP 地址
+ 配置项 `WebUI 端口`, 默认值:`15275`
填写格式:`http://{宿主机 IP 地址}:{WebUI 端口}/`
### 无法修改项目
+ `API 地址`
当前部署方式为 前后端合并部署,请勿强制修改参数值。

View File

@ -1,9 +1,9 @@
name: Stream Rec API服务 name: Stream Rec 后端服务
title: 自动流媒体录制工具 title: 自动流媒体录制工具
description: 自动流媒体录制工具 description: 自动流媒体录制工具
additionalProperties: additionalProperties:
key: stream-rec-backend key: stream-rec-backend
name: Stream Rec API服务 name: Stream Rec 后端服务
tags: tags:
- Tool - Tool
- Local - Local

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -15,7 +15,6 @@ services:
- 1panel-network - 1panel-network
ports: ports:
- ${PANEL_APP_PORT_HTTP}:15275 - ${PANEL_APP_PORT_HTTP}:15275
environment:
- TZ=Asia/Shanghai
env_file: env_file:
- .env - /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}

View File

@ -2,7 +2,7 @@
Stream-rec 是一个自动录制各种直播平台的工具。 Stream-rec 是一个自动录制各种直播平台的工具。
![Stream-Rec](https://github.com/hua0512/stream-rec-front/blob/master/docs/zh/dashboard.png) ![Stream-Rec](https://file.lifebus.top/imgs/stream_rec_cover.png)
## 特性 ## 特性
@ -24,36 +24,43 @@ Stream-rec 是一个自动录制各种直播平台的工具。
| 虎牙 | ✅ | ✅ | `https://www.huya.com/{直播间}` | | 虎牙 | ✅ | ✅ | `https://www.huya.com/{直播间}` |
| PandaTV | ✅ | ✅ | `https://www.pandalive.co.kr/live/play/{直播间}` | | PandaTV | ✅ | ✅ | `https://www.pandalive.co.kr/live/play/{直播间}` |
| Twitch | ✅ | ✅ | `https://www.twitch.tv/{直播间}` | | Twitch | ✅ | ✅ | `https://www.twitch.tv/{直播间}` |
| AfreecaTv | ❌ | ❌ | |
| Bilibili | ❌ | ❌ | |
| Niconico | ❌ | ❌ | |
| Youtube | ❌ | ❌ | |
## 安装说明 ## 安装说明
当前项目为 Stream-Rec 的前端部分,请配合后端使用。 > 默认账户
>
> 用户名stream-rec
>
> 密码stream-rec 或 `登录密码 (初始化)` 配置
获取后端部署主机ip,例如:`192.168.1.20` ### 必须修改配置
获取后端部署API服务端口默认值`12555`,具体值为 `API 端口` + `WebSocket API 地址`
### `API 地址` 配置 默认值:`ws://stream-rec-backend:12555/live/update`
```shell 需要获取:
# 协议 + 主机 + API端口 + /api
http://192.168.1.20:12555/api
```
### `WebSocket API 地址` 配置 + 宿主机 IP 地址
+ 配置项 `API 端口`, 默认值:`12555`
```shell 填写格式:`ws://{宿主机 IP 地址}:{API 端口}/live/update`
# ws:// + 主机 + API端口 + /live/update
ws://192.168.1.20:12555/live/update
```
### `NextAuth 服务器地址` 配置 ### 可修改配置
```shell + `NextAuth 服务器地址`
# 协议 + 主机 + Web端口 + /
http://localhost:15275/ 默认值:`http://localhost:15275/`
```
需要获取:
+ 宿主机 IP 地址
+ 配置项 `WebUI 端口`, 默认值:`15275`
填写格式:`http://{宿主机 IP 地址}:{WebUI 端口}/`
### 无法修改项目
+ `API 地址`
当前部署方式为 前后端合并部署,请勿强制修改参数值。

View File

@ -1,9 +1,9 @@
name: Stream Rec 前台服务 name: Stream Rec WebUI
title: 自动流媒体录制工具 title: 自动流媒体录制工具
description: 自动流媒体录制工具 description: 自动流媒体录制工具
additionalProperties: additionalProperties:
key: stream-rec-frontend key: stream-rec-frontend
name: Stream Rec 前台服务 name: Stream Rec WebUI
tags: tags:
- WebSite - WebSite
- Tool - Tool

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -15,16 +15,16 @@ services:
- 1panel-network - 1panel-network
ports: ports:
- ${PANEL_APP_PORT_API}:12555 - ${PANEL_APP_PORT_API}:12555
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes: volumes:
- ${STREAM_REC_ROOT_PATH}/records:/opt/records - ${STREAM_REC_ROOT_PATH}/records:/opt/records
- ${STREAM_REC_ROOT_PATH}/download:/download - ${STREAM_REC_ROOT_PATH}/download:/download
environment: environment:
- TZ=Asia/Shanghai
- LOG_LEVEL=INFO - LOG_LEVEL=INFO
- DB_PATH=/opt/records - DB_PATH=/opt/records
- DOWNLOAD_PATH=/download - DOWNLOAD_PATH=/download
env_file:
- .env
stream-rec-frontend: stream-rec-frontend:
depends_on: depends_on:
@ -38,7 +38,6 @@ services:
- 1panel-network - 1panel-network
ports: ports:
- ${PANEL_APP_PORT_HTTP}:15275 - ${PANEL_APP_PORT_HTTP}:15275
environment:
- TZ=Asia/Shanghai
env_file: env_file:
- .env - /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}

View File

@ -3,6 +3,11 @@
if [ -f .env ]; then if [ -f .env ]; then
source .env source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish." echo "Check Finish."
else else

View File

@ -3,6 +3,11 @@
if [ -f .env ]; then if [ -f .env ]; then
source .env source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish." echo "Check Finish."
else else

View File

@ -2,7 +2,7 @@
Stream-rec 是一个自动录制各种直播平台的工具。 Stream-rec 是一个自动录制各种直播平台的工具。
![Stream-Rec](https://github.com/hua0512/stream-rec-front/blob/master/docs/zh/dashboard.png) ![Stream-Rec](https://file.lifebus.top/imgs/stream_rec_cover.png)
## 特性 ## 特性
@ -24,10 +24,6 @@ Stream-rec 是一个自动录制各种直播平台的工具。
| 虎牙 | ✅ | ✅ | `https://www.huya.com/{直播间}` | | 虎牙 | ✅ | ✅ | `https://www.huya.com/{直播间}` |
| PandaTV | ✅ | ✅ | `https://www.pandalive.co.kr/live/play/{直播间}` | | PandaTV | ✅ | ✅ | `https://www.pandalive.co.kr/live/play/{直播间}` |
| Twitch | ✅ | ✅ | `https://www.twitch.tv/{直播间}` | | Twitch | ✅ | ✅ | `https://www.twitch.tv/{直播间}` |
| AfreecaTv | ❌ | ❌ | |
| Bilibili | ❌ | ❌ | |
| Niconico | ❌ | ❌ | |
| Youtube | ❌ | ❌ | |
## 安装说明 ## 安装说明
@ -35,7 +31,7 @@ Stream-rec 是一个自动录制各种直播平台的工具。
> >
> 用户名stream-rec > 用户名stream-rec
> >
> 密码stream-rec > 密码stream-rec`登录密码 (初始化)` 配置
### 必须修改配置 ### 必须修改配置

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB