From 6fbb4c7bcec480a979523d103e601d23746ec59f Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 10 Sep 2024 21:53:14 +0800 Subject: [PATCH] update owncast --- owncast/launchd/README.txt | 7 +++++++ owncast/launchd/owncast.plist | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 owncast/launchd/README.txt create mode 100644 owncast/launchd/owncast.plist diff --git a/owncast/launchd/README.txt b/owncast/launchd/README.txt new file mode 100644 index 0000000..cdaa289 --- /dev/null +++ b/owncast/launchd/README.txt @@ -0,0 +1,7 @@ +1. Download owncast-macOS.zip from https://github.com/owncast/owncast/releases +2. Download ffmpeg.zip from https://evermeet.cx/ffmpeg/ +3. Unzip executable files to /usr/local/bin/ +4. Create launchd file: ~/Library/LaunchAgents/owncast.plist +5. Run command: launchctl bootstrap user/501 ~/Library/LaunchAgents/owncast.plist +6. Open web browser: http://127.0.0.1:8080/admin (admin:abc123) +7. OBS live stream to: rtmp://127.0.0.1/live (abc123) diff --git a/owncast/launchd/owncast.plist b/owncast/launchd/owncast.plist new file mode 100644 index 0000000..958d401 --- /dev/null +++ b/owncast/launchd/owncast.plist @@ -0,0 +1,35 @@ + + + + + Label + owncast + ProgramArguments + + /usr/local/bin/owncast + -backupdir=data + -database=data/database.db + + StandardErrorPath + /usr/local/var/log/owncast.err.log + StandardOutPath + /usr/local/var/log/owncast.out.log + WorkingDirectory + /usr/local/etc/owncast + RunAtLoad + + LimitLoadToSessionType + + Aqua + Background + LoginWindow + StandardIO + System + + EnvironmentVariables + + PATH + /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin + + +