37
Owncast - 快速搭建个人直播平台
source link: https://azhuge233.com/owncast-%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%ba%e4%b8%aa%e4%ba%ba%e7%9b%b4%e6%92%ad%e5%b9%b3%e5%8f%b0/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
配置 Owncast
安装依赖环境
获取 Owncast
修改配置文件 打开 Owncast 目录下的 config.yaml,修改 videoSettings 下的 streamingKey 如果还想设置 串流质量、S3 存储等,可以参考 Configuration – Owncast,这里贴上我的配置文件
# See https://owncast.online/docs/configuration/ for more details
instanceDetails:
name: Owncast
title: Owncast
summary: "This is brief summary of whom you are or what your stream is. You can read more about it at owncast.online. You can edit this description in your config file."
logo:
small: /img/logo128.png
large: /img/logo256.png
tags:
- music
- software
- streaming
# https://owncast.online/docs/configuration/#external-links
# for full list of supported social links. All optional.
socialHandles:
- platform: github
url: http://github.com/owncast/owncast
- platform: mastodon
url: http://mastodon.something/owncast
videoSettings:
# Change this value and keep it secure. Treat it like a password to your live stream.
streamingKey: azhuge233
offlineContent: static/offline.m4v
streamQualities:
- low:
videoBitrate: 400
scaledWidth: 600
encoderPreset: superfast
- medium:
videoBitrate: 800
encoderPreset: fast
- high:
videoBitrate: 2000
framerate: 30
encoderPreset: faster
enabled: false
endpoint: http://192.168.16.16:9000
accessKey: azhuge233
secret: veryStrongSecretKey
region: us-east-1
bucket: owncast
# See https://owncast.online/docs/configuration/ for more details instanceDetails: name: Owncast title: Owncast summary: "This is brief summary of whom you are or what your stream is. You can read more about it at owncast.online. You can edit this description in your config file." logo: small: /img/logo128.png large: /img/logo256.png tags: - music - software - streaming # https://owncast.online/docs/configuration/#external-links # for full list of supported social links. All optional. socialHandles: - platform: github url: http://github.com/owncast/owncast - platform: mastodon url: http://mastodon.something/owncast videoSettings: # Change this value and keep it secure. Treat it like a password to your live stream. streamingKey: azhuge233 offlineContent: static/offline.m4v streamQualities: - low: videoBitrate: 400 scaledWidth: 600 encoderPreset: superfast - medium: videoBitrate: 800 encoderPreset: fast - high: videoBitrate: 2000 framerate: 30 encoderPreset: faster s3: enabled: false endpoint: http://192.168.16.16:9000 accessKey: azhuge233 secret: veryStrongSecretKey region: us-east-1 bucket: owncast
其中添加了三级串流品质和 S3 存储,S3 存储可以使用 MinIO,搭建方式详见 Setup private object storage using MinIO
不过,按照如上配置使用 MinIO 开启 S3 存储后串流会无法加载,暂不知原因
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK