Coder Social home page Coder Social logo

owncast-ssl-install's Introduction

zwtv-owncast

Opinionated installer for Owncast, used for ZuidWest TV. Replacement for https://github.com/oszuidwest/nginx-rtmp-live

Conventions

  • Owncast has it's own user named owncast
  • The working directory is /opt/owncast/
  • Configuration, logs and databases should be outside of the working directory for easy upgrades (only logs for now)
  • Owncast executable is linked to /usr/bin/owncast
  • Secure http proxy in port 80 and 443 with Let's Encrypt

How to use

Set-up an empty server with Debian 12 or Ubuntu 22.04 and run this command as root: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/oszuidwest/owncast-ssl-install/main/install.sh)"

Tune CPU for maximal performace

Video transcoding is an intensive process. To ensure the maximal stability, tune the CPU for maximal performance. This only works on machines with physical cpus, not virtualized machines or containers. Do the following:

  • Install cpupower with apt install linux-tools-generic
  • Tune the CPU for performance cpupower frequency-set -g performance

To ensure it remains tuned for maximal performance after reboots, add a service file:

cat << EOF | sudo tee /etc/systemd/system/cpupower.service
[Unit]
Description=CPU tuning
[Service]
Type=oneshot
ExecStart=/usr/bin/cpupower frequency-set -g performance
[Install]
WantedBy=multi-user.target
EOF

It might also help to use the latest ffmpeg version instead of the one incldued in apt. Newer versions usually contain performance optimalisations.

owncast-ssl-install's People

Contributors

rmens avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

hvmediavn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.