视频保存

This commit is contained in:
duoaohui
2026-05-19 11:53:34 +08:00
parent 651443cdc4
commit 472495af02

View File

@@ -102,6 +102,13 @@ services:
MEDIASOUP_RTC_MAX_PORT: ${MEDIASOUP_RTC_MAX_PORT:-30199} MEDIASOUP_RTC_MAX_PORT: ${MEDIASOUP_RTC_MAX_PORT:-30199}
MEDIASOUP_WORKER_LOG_LEVEL: warn MEDIASOUP_WORKER_LOG_LEVEL: warn
MEDIASOUP_MAX_ROUTERS: "200" MEDIASOUP_MAX_ROUTERS: "200"
# 录制输出目录:与 host 路径保持一致,使 go-servicehost 进程)可直接读取 ffmpeg 写出的 mp4
# 容器内路径 = host 路径ffmpeg 写出的 outputPath 字符串可在两侧通用
RECORDING_OUTPUT_DIR: ${RECORDING_OUTPUT_DIR:-/home/ykf/jenkins/yuyin/data}
volumes:
# 录制文件 host 共享卷media-server 容器内 ffmpeg 写入此目录go-service host 进程直接读
# 没有这条挂载时 go-service 会报 "stat ...: no such file or directory"
- ${RECORDING_OUTPUT_DIR:-/home/ykf/jenkins/yuyin/data}:${RECORDING_OUTPUT_DIR:-/home/ykf/jenkins/yuyin/data}
#ports: #ports:
# - "3300:3300" # - "3300:3300"
# mediasoup RTC 流量端口范围UDP + TCP 双栈ICE-TCP fallback 用) # mediasoup RTC 流量端口范围UDP + TCP 双栈ICE-TCP fallback 用)