提交合并

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
Meng Sen
2024-07-17 16:30:13 +08:00
committed by 萌森
commit 6c18fe434d
449 changed files with 21391 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
additionalProperties:
formFields:
- default: "/home/stream-rec"
edit: true
envKey: STREAM_REC_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 15275
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: 12555
edit: true
envKey: PANEL_APP_PORT_API
labelZh: API 端口
labelEn: API port
required: true
rule: paramPort
type: number
- default: "stream-rec"
edit: false
envKey: LOGIN_SECRET
labelZh: 登录密码 (初始化)
labelEn: Login Password (Initialization)
required: true
random: true
type: text
- default: ""
edit: true
envKey: NEXTAUTH_SECRET
labelZh: NextAuth 加密密钥
labelEn: NextAuth Secret
required: true
random: true
type: text
- default: "http://localhost:15275/"
edit: true
envKey: NEXTAUTH_URL
labelZh: NextAuth 服务器地址
labelEn: NextAuth Server URL
required: true
type: text
- default: "http://stream-rec-backend:12555/api"
disabled: true
envKey: API_URL
labelZh: API 地址
labelEn: API URL
required: true
type: text
- default: "ws://stream-rec-backend:12555/live/update"
edit: true
envKey: WS_API_URL
labelZh: WebSocket API 地址
labelEn: WebSocket API URL
required: true
type: text
- default: ""
edit: true
envKey: HTTP_PROXY
labelZh: 网络代理
labelEn: Network Proxy
required: false
type: text

View File

@@ -0,0 +1,44 @@
version: "3.8"
networks:
1panel-network:
external: true
services:
stream-rec-backend:
image: streamrec/stream-rec:v0.6.9
container_name: ${CONTAINER_NAME}-backend
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_API}:12555
volumes:
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
- ${STREAM_REC_ROOT_PATH}/download:/download
environment:
- TZ=Asia/Shanghai
- LOG_LEVEL=INFO
- DB_PATH=/opt/records
- DOWNLOAD_PATH=/download
env_file:
- .env
stream-rec-frontend:
depends_on:
- stream-rec-backend
image: streamrec/stream-rec-front:v0.6.9
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:15275
environment:
- TZ=Asia/Shanghai
env_file:
- .env

View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

70
apps/stream-rec/README.md Normal file
View File

@@ -0,0 +1,70 @@
# Stream-Rec
Stream-rec 是一个自动录制各种直播平台的工具。
![Stream-Rec](https://github.com/hua0512/stream-rec-front/blob/master/docs/zh/dashboard.png)
## 特性
基于 Kotlin, Ktor, 和 ffmpeg。
+ 自动录播,可配置录制质量,路径,格式,并发量,分段录制(时间或文件大小),分段上传,根据直播标题和开始时间自动命名文件。
+ 自动弹幕录制XML格式可使用 DanmakuFactory 进行弹幕转换或配合AList来实现弹幕自动挂载。
+ 使用 SQLite 持久化存储录播和上传信息
+ 支持 Rclone 上传到云存储
+ 使用 Web 界面进行配置
+ 支持 Docker
## 直播平台支持列表
| 平台 | 录制 | 弹幕 | 链接格式 |
|-----------|----|----|-----------------------------------------------|
| 抖音 | ✅ | ✅ | `https://www.live.douyin.com/{抖音id}` |
| 斗鱼 | ✅ | ✅ | `https://www.douyu.com/{直播间}` |
| 虎牙 | ✅ | ✅ | `https://www.huya.com/{直播间}` |
| PandaTV | ✅ | ✅ | `https://www.pandalive.co.kr/live/play/{直播间}` |
| Twitch | ✅ | ✅ | `https://www.twitch.tv/{直播间}` |
| AfreecaTv | ❌ | ❌ | |
| Bilibili | ❌ | ❌ | |
| Niconico | ❌ | ❌ | |
| Youtube | ❌ | ❌ | |
## 安装说明
> 默认账户
>
> 用户名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 地址`
当前部署方式为 前后端合并部署,请勿强制修改参数值。

18
apps/stream-rec/data.yml Normal file
View File

@@ -0,0 +1,18 @@
name: Stream Rec
title: 自动流媒体录制工具
description: 自动流媒体录制工具
additionalProperties:
key: stream-rec
name: Stream Rec
tags:
- WebSite
- Tool
- Local
shortDescZh: 自动流媒体录制工具
shortDescEn: Automatic streaming media recording tool
type: website
crossVersionUpdate: true
limit: 0
website: https://github.com/hua0512/stream-rec/
github: https://github.com/hua0512/stream-rec/
document: https://github.com/hua0512/stream-rec/

BIN
apps/stream-rec/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 KiB