Skip to content

About

Restream a video source to multiple destinations such as Twitch, YouTube, Owncast and Peertube 📡

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

96 stars

Watchers

1 watching

Forks

Latest commit

 

History

152 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Stream Sprout
Stream Sprout

Restream one video source to Twitch, YouTube, Owncast, PeerTube, and other platforms at the same time.

Website | Documentation

Stream Sprout receives a single RTMP stream from OBS Studio (or any RTMP encoder) through FFmpeg and forwards it to multiple destinations without transcoding. It runs beside OBS Studio on Linux or macOS without root privileges, third-party relay fees, or a separate web server.

Stream Sprout terminal output during a multi-destination broadcast

Features

  • Restream one broadcast to Twitch, YouTube, Owncast, PeerTube, and any rtmp:// or rtmps:// destination.
  • Copy video and audio tracks without transcoding, so extra destinations add no extra encoding load.
  • Keep active destinations live when one destination fails through FFmpeg's onfail=ignore tee option.
  • Save an optional local Matroska (.mkv) archive of each broadcast with a timestamped filename.
  • Manage all server and destination settings in one stream-sprout.yaml file that reloads between broadcasts.

Install

Platform Repository
Debian and Ubuntu apt.wimpys.world
Fedora and openSUSE rpm.wimpys.world
Arch Linux pkg.wimpys.world
Alpine Linux apk.wimpys.world
Nix and NixOS nix.wimpys.world

Each repository is signed, and its page gives the setup steps and keeps Stream Sprout up to date.

Container

Images are published to the GitHub Container Registry for linux/amd64 and linux/arm64.

Pull the latest image:

docker pull ghcr.io/wimpysworld/stream-sprout:latest-alpine

Mount the directory that holds stream-sprout.yaml and expose the RTMP port:

docker run -p 1935:1935 -it -v "$PWD:/data" \
  ghcr.io/wimpysworld/stream-sprout:latest-alpine \
  --config /data/stream-sprout.yaml
  • -p 1935:1935 exposes the RTMP server port 1935 on the host. Change it when stream-sprout.yaml sets a different port.
  • -it runs the container interactively.
  • -v "$PWD:/data" mounts the current directory as /data inside the container.

Build the container image locally:

docker build -f Containerfile -t stream-sprout .

From source

Stream Sprout requires Bash 5.0 or later and FFmpeg on PATH.

git clone https://github.com/wimpysworld/stream-sprout.git
cd stream-sprout

Usage

Create stream-sprout.yaml in your working directory (or copy stream-sprout.yaml.example):

server:
  ip: 127.0.0.1
  port: 1935
  app: sprout
  key: replace_with_uuidgen_key
  archive_stream: false
  archive_path: ~/Streams

services:
  twitch:
    enabled: true
    rtmp_server: rtmp://live.twitch.tv/app/
    key: your_twitch_stream_key
  youtube:
    enabled: true
    rtmp_server: rtmp://a.rtmp.youtube.com/live2/
    key: your_youtube_stream_key

Start Stream Sprout:

stream-sprout

In OBS Studio, open Settings > Stream, choose Custom, enter rtmp://127.0.0.1:1935/sprout as the Server, paste your server.key value into Stream Key, and click Start Streaming. Press Ctrl+C in the terminal to stop stream-sprout.

Option Description
--config <path> Load a configuration file from a custom path.
--info Print operating system, container runtime, awk, bash, and ffmpeg versions for bug reports.
--version Print the Stream Sprout and FFmpeg versions.
--help Display usage help and exit.

Warning

FFmpeg does not enforce the app or key path on its incoming RTMP listener and accepts any stream on the configured port. Do not expose the RTMP port to untrusted networks without a VPN, SSH tunnel, or firewall. Read Security and limitations before listening on a non-loopback address.

Documentation

  • Configuration - Config search paths, server: options, local stream archiving, and Twitch, YouTube, Owncast, PeerTube, and RTMPS targets.
  • OBS Studio - OBS Studio setup walkthrough and remote-host connection notes.
  • Security and limitations - FFmpeg RTMP key enforcement caveat, VPN, SSH tunnel, and firewall hardening, and upload bandwidth limits.
  • References - Upstream FFmpeg, OBS Studio, and container references plus stream-sprout --info bug-report guidance.

About

Restream a video source to multiple destinations such as Twitch, YouTube, Owncast and Peertube 📡

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

96 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages