wimpysworld / stream-sprout

Restream a video source to multiple destinations such as Twitch, YouTube, Owncast and Peertube 📡
Apache License 2.0
28 stars 4 forks source link

refactor: change the server configuration format #27

Closed flexiondotorg closed 3 months ago

flexiondotorg commented 3 months ago

Description

The patch changes the way the Stream Sprout server is configured. I'm making this change before the project gets established as this new technique is easier to validate and provide sane fallback behaviour.

app is added so the Stream Sprout server URLs conform to typical RTMP expectations and FFmpeg no longer generates warnings.

Before

server:
  url: "rtmp://127.0.0.1:1935"
  key: bc102314-9013-4301-8468-9b5592c05201
  archive_stream: true
  archive_path: "${HOME}/Streams"

After

server:
  ip: 127.0.0.1
  port: 1935
  app: sprout
  key: bc102314-9013-4301-8468-9b5592c05201
  archive_stream: true
  archive_path: "${HOME}/Streams"

Type of change

Checklist: