owncast/doc/configuration.md
2020-06-09 11:56:08 -07:00

1.4 KiB

Configuration

Video Quality

Owncast supports HLS Adaptive bitrate streaming, or in other words, different video qualities that can be used for different network conditions.

You can edit the config/config.yaml file and add as many stream variants as you like under the videoSettings block, like so:

  streamQualities:
    - bitrate: 2000k
    - bitrate: 6000k

You must have at least one bitrate specified.

Important caveats

CPU Usage

Each bitrate variant adds significant CPU usage and slows down the overall generation of video segments. If you have a slow server running Owncast you should probably only have one bitrate variant in play. If you add more and you notice that playback becomes choppy it's likely that everything is running too slowly for consistent playback. Consider removing the additional variants and tweaking your single variant so it supports a wider variety of network conditions.

Disk Usage

More stream quality variants requires more disk space, since it's another copy of the video on disk. If you're serving video locally and you have enough disk space then it's probably no big deal and files will rather quickly get rotated and cleaned up. If you're using something like S3 for storage then files won't get cleaned up until some point in the future, so you'll have more remote storage use in play.