mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 10:55:57 +08:00
2.1 KiB
2.1 KiB
Quickstart
There are two quick ways to get up and running, depending on your preference. One is to simply download the service and run it, and the other is through Docker, if Docker is your thing.
Download and run
- Install
ffmpegif you haven't. - Make a directory to run the service from, and download a release from https://github.com/gabek/owncast/releases into that directory.
- Unzip the release's archive:
unzip owncast-linux-x.x.x.zip. - Edit
config.yamlas detailed below. Specifically your stream key andffmpeglocation. - Run
./owncastto start the service.
or.....
Through docker
- Download the code.
git clone https://github.com/gabek/owncast - Copy
config-example.yamltoconfig.yaml - Edit
config.yamland change the path of ffmpeg to/usr/bin/ffmpeg. - Edit your stream key to whatever you'd like it to be in the config.
- If you ever make any future config file changes you must rerun the
docker buildstep otherwise you can just run thedocker runstep to run the service going forward. - Run
docker build -t owncast .and wait. It may take a few minutes to build depending on the speed of your server. - Run
docker run -p 8080:8080 -p 1935:1935 -it owncastto start the service.
Configure
- Edit
config.yamland change the path of ffmpeg to where your copy is. - In this default configuration there will be a single video quality available, simply whatever is being sent to the server is being distributed to the viewers. The video is also going to be distributed from the server running the service in this case.
- Continue to edit the config file and customize with your own details, links and info. See More Configuration to find additional ways to configure video quality.
Test
- Point your broadcasting software at your new server using
rtmp://yourserver/liveand the stream key you set above and start your stream. - Access your server in your web browser by visiting
http://yourserver:8080.