From f15dbc04acb651f69d4267a23fed0bb6d630dc1f Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 2 Feb 2022 11:08:12 +0800 Subject: [PATCH] update owncast --- owncast/README.md | 16 +++++ owncast/arm/data/config.yaml | 79 ----------------------- owncast/{arm => arm64}/Dockerfile | 7 +- owncast/{arm => arm64}/docker-compose.yml | 0 owncast/data/config.yaml | 79 ----------------------- 5 files changed, 19 insertions(+), 162 deletions(-) delete mode 100644 owncast/arm/data/config.yaml rename owncast/{arm => arm64}/Dockerfile (63%) rename owncast/{arm => arm64}/docker-compose.yml (100%) delete mode 100644 owncast/data/config.yaml diff --git a/owncast/README.md b/owncast/README.md index b74db9e..ead0a88 100644 --- a/owncast/README.md +++ b/owncast/README.md @@ -5,6 +5,22 @@ owncast existing popular broadcasting software. Point your live stream at a server you personally control and regain ownership over your content. +## Up and Running + +```yaml +version: "3.8" +services: + owncast: + image: gabekangas/owncast + command: /app/owncast -backupdir=/data -database=/data/database.db + ports: + - "1935:1935" + - "8080:8080" + volumes: + - ./data:/data + restart: unless-stopped +``` + ## Using with OBS / Streamlabs OBS is a pretty good piece of free software that will get you streaming from your own computer right away. diff --git a/owncast/arm/data/config.yaml b/owncast/arm/data/config.yaml deleted file mode 100644 index db36bfe..0000000 --- a/owncast/arm/data/config.yaml +++ /dev/null @@ -1,79 +0,0 @@ -# You can specific the path to a specific ffmpeg binary. -ffmpegPath: /usr/bin/ffmpeg -webServerPort: 8080 -rtmpServerPort: 1935 - -instanceDetails: - name: Owncast - title: Owncast Demo Server - logo: /img/logo.svg - - summary: "This is brief summary of whom you are or what your stream is." - - tags: - - music - - software - - animal crossing - - # Specify if your stream includes NSFW content. - nsfw: false - - # https://owncast.online/docs/configuration/#external-links - # for full list of supported social links. All optional. - socialHandles: - - platform: github - url: https://github.com/owncast/owncast - - platform: instagram - url: http://instagram.biz/owncast - - platform: facebook - url: http://facebook.gov/owncast - - platform: tiktok - url: http://tiktok.cn/owncast - - platform: soundcloud - url: http://soundcloud.com/owncast - -videoSettings: - # The length of a single segment of video. - chunkLengthInSeconds: 4 - # Change this value and keep it secure. Treat it like a password to your live stream. - streamingKey: abc123 - - # Determine the qualities of your stream variants. - # See https://owncast.online/docs/configuration/#video-quality for details. - streamQualities: - - low: - # Higher the bitrate, the better it looks, but it requires more bandwidth to consume. - videoBitrate: 800 - # Resize the width to something smaller. scaledHeight is also an option. Don't use both at once - # unless you want to chang the aspect ratio of your video. - scaledWidth: 600 - # Don't re-encode the audio. - audioPassthrough: true - # The slower the preset the higher quality the video is. - # Select a preset from https://trac.ffmpeg.org/wiki/Encode/H.264 - # "superfast" and "ultrafast" are generally not recommended since they look bad. - encoderPreset: veryfast - - - medium: - videoBitrate: 1200 - encoderPreset: fast - -# Number of segments kept referenced in the HLS playlist -files: - maxNumberInPlaylist: 4 - -# Read https://owncast.online/docs/s3/ for S3 config details. -s3: - enabled: false - endpoint: https://s3.us-west-2.amazonaws.com - servingEndpoint: https://yourcdn.example - accessKey: ABC12342069 - secret: lolomgqwtf49583949 - region: us-west-2 - bucket: myvideo - -# Off by default. You can optionally list yourself in the Owncast directory. -# Make sure your instanceURL is the public URL to your Owncast instance. -yp: - enabled: false - instanceURL: https://stream.myserver.org diff --git a/owncast/arm/Dockerfile b/owncast/arm64/Dockerfile similarity index 63% rename from owncast/arm/Dockerfile rename to owncast/arm64/Dockerfile index ca0f973..3cf37ed 100644 --- a/owncast/arm/Dockerfile +++ b/owncast/arm64/Dockerfile @@ -2,18 +2,17 @@ # Dockerfile for owncast-arm # -FROM arm32v7/alpine:3 +FROM alpine:3 MAINTAINER EasyPi Software Foundation ENV OWNCAST_VERSION=0.0.10 -ENV OWNCAST_FILE=owncast-${OWNCAST_VERSION}-linux-arm7.zip +ENV OWNCAST_FILE=owncast-${OWNCAST_VERSION}-linux-arm64.zip ENV OWNCAST_URL=https://github.com/owncast/owncast/releases/download/v${OWNCAST_VERSION}/${OWNCAST_FILE} WORKDIR /app RUN set -xe \ - && apk add --no-cache curl ffmpeg ffmpeg-libs \ - && ln -s /lib/libc.musl-armv7.so.1 /lib/ld-linux-armhf.so.3 \ + && apk add --no-cache curl ffmpeg ffmpeg-libs gcompat \ && curl -sSLO ${OWNCAST_URL} \ && unzip ${OWNCAST_FILE} \ && rm ${OWNCAST_FILE} diff --git a/owncast/arm/docker-compose.yml b/owncast/arm64/docker-compose.yml similarity index 100% rename from owncast/arm/docker-compose.yml rename to owncast/arm64/docker-compose.yml diff --git a/owncast/data/config.yaml b/owncast/data/config.yaml deleted file mode 100644 index efaf321..0000000 --- a/owncast/data/config.yaml +++ /dev/null @@ -1,79 +0,0 @@ -# You can specific the path to a specific ffmpeg binary. -ffmpegPath: /usr/local/bin/ffmpeg -webServerPort: 8080 -rtmpServerPort: 1935 - -instanceDetails: - name: Owncast - title: Owncast Demo Server - logo: /img/logo.svg - - summary: "This is brief summary of whom you are or what your stream is." - - tags: - - music - - software - - animal crossing - - # Specify if your stream includes NSFW content. - nsfw: false - - # https://owncast.online/docs/configuration/#external-links - # for full list of supported social links. All optional. - socialHandles: - - platform: github - url: https://github.com/owncast/owncast - - platform: instagram - url: http://instagram.biz/owncast - - platform: facebook - url: http://facebook.gov/owncast - - platform: tiktok - url: http://tiktok.cn/owncast - - platform: soundcloud - url: http://soundcloud.com/owncast - -videoSettings: - # The length of a single segment of video. - chunkLengthInSeconds: 4 - # Change this value and keep it secure. Treat it like a password to your live stream. - streamingKey: abc123 - - # Determine the qualities of your stream variants. - # See https://owncast.online/docs/configuration/#video-quality for details. - streamQualities: - - low: - # Higher the bitrate, the better it looks, but it requires more bandwidth to consume. - videoBitrate: 800 - # Resize the width to something smaller. scaledHeight is also an option. Don't use both at once - # unless you want to chang the aspect ratio of your video. - scaledWidth: 600 - # Don't re-encode the audio. - audioPassthrough: true - # The slower the preset the higher quality the video is. - # Select a preset from https://trac.ffmpeg.org/wiki/Encode/H.264 - # "superfast" and "ultrafast" are generally not recommended since they look bad. - encoderPreset: veryfast - - - medium: - videoBitrate: 1200 - encoderPreset: fast - -# Number of segments kept referenced in the HLS playlist -files: - maxNumberInPlaylist: 4 - -# Read https://owncast.online/docs/s3/ for S3 config details. -s3: - enabled: false - endpoint: https://s3.us-west-2.amazonaws.com - servingEndpoint: https://yourcdn.example - accessKey: ABC12342069 - secret: lolomgqwtf49583949 - region: us-west-2 - bucket: myvideo - -# Off by default. You can optionally list yourself in the Owncast directory. -# Make sure your instanceURL is the public URL to your Owncast instance. -yp: - enabled: false - instanceURL: https://stream.myserver.org