2021-02-01 12:18:33 +08:00
|
|
|
owncast
|
|
|
|
=======
|
|
|
|
|
|
|
|
[Owncast][1] is a self-hosted live video and web chat server for use with
|
|
|
|
existing popular broadcasting software. Point your live stream at a server you
|
|
|
|
personally control and regain ownership over your content.
|
|
|
|
|
2022-02-02 11:08:12 +08:00
|
|
|
## Up and Running
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
owncast:
|
2024-04-08 09:32:15 +08:00
|
|
|
image: owncast/owncast:0.1.3
|
2024-09-11 18:17:40 +08:00
|
|
|
command: /app/owncast
|
2022-02-02 11:08:12 +08:00
|
|
|
ports:
|
|
|
|
- "1935:1935"
|
|
|
|
- "8080:8080"
|
|
|
|
volumes:
|
2024-04-08 09:32:15 +08:00
|
|
|
- ./data:/app/data
|
2022-02-02 11:08:12 +08:00
|
|
|
restart: unless-stopped
|
|
|
|
```
|
|
|
|
|
2024-04-08 09:32:15 +08:00
|
|
|
```bash
|
|
|
|
$ mkdir -p data
|
2024-04-08 18:20:30 +08:00
|
|
|
# temporarily disable until we figure out how to move forward
|
|
|
|
# chown -R 101:101 data
|
2024-04-08 09:32:15 +08:00
|
|
|
$ docker compose up -d
|
|
|
|
```
|
|
|
|
|
2024-04-08 18:20:30 +08:00
|
|
|
> https://github.com/owncast/owncast/blob/develop/Earthfile#L129-L131
|
|
|
|
|
2021-02-01 12:53:26 +08:00
|
|
|
## Using with OBS / Streamlabs
|
|
|
|
|
|
|
|
OBS is a pretty good piece of free software that will get you streaming from your own computer right away.
|
|
|
|
|
|
|
|
- Install OBS or Streamlabs OBS and get it working with your local setup.
|
|
|
|
- Open OBS Settings and go to “Stream”.
|
|
|
|
- Select “Custom…” as the service.
|
|
|
|
- Enter the URL of the server running your streaming service in the format of rtmp://myserver.net/live.
|
|
|
|
- Enter your “Stream Key” that matches the key you put in your config.yaml file.
|
|
|
|
- Start the server.
|
|
|
|
- Press “Start Streaming” (OBS) or “Go Live” (Streamlabs) on OBS.
|
|
|
|
|
2024-09-11 18:17:40 +08:00
|
|
|
## Recommended Mobile Apps
|
|
|
|
|
|
|
|
- Android: https://play.google.com/store/apps/details?id=com.streamlabs&hl=en_US
|
|
|
|
- iOS: https://apps.apple.com/us/app/streamlabs-live-streaming-app/id1294578643
|
|
|
|
|
|
|
|
## 3rd-party Integrations
|
|
|
|
|
|
|
|
- https://owncast.online/thirdparty/apis/
|
|
|
|
- http://127.0.0.1:8080/admin/access-tokens/
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ API_URL=http://127.0.0.1:8080/api/integrations
|
|
|
|
$ API_TOKEN=******
|
|
|
|
$ curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $API_TOKEN" -d '{"body": "I am a system message!"}' $API_URL/chat/system
|
|
|
|
{"message":"sent","success":true}
|
|
|
|
```
|
|
|
|
|
2021-02-01 12:18:33 +08:00
|
|
|
[1]: https://owncast.online/
|