Sign inSign up

longtimedead/restreamer

By longtimedead

•Updated over 1 year ago

Multi Source + Multi Platform restreamer

Image
Content management system
0

153

longtimedead/restreamer repository overview

⁠Key Features
  • Multi-source support: Stream from platforms like Twitch and YouTube.
  • Multi-destination support: Forward streams to Twitch, YouTube, and Aparat simultaneously.
  • Flexible configuration: Supports one or multiple destinations based on environment variables.
  • Dockerized setup: Easy to deploy and manage using Docker containers.
  • Environment variable configuration: Customize each container with source and destination stream keys.
  • Simple commands: Start, stop, and manage streams with easy docker commands.

⁠How It Works

The Restreamer Docker container captures a live stream from a specified source channel (like Twitch or YouTube) and forwards it to one or more destination platforms. You can configure the container using the following environment variables:

  • SOURCE_TYPE: The platform from which the stream will be pulled (Twitch or YouTube).
  • SOURCE_NAME: The name or URL of the stream on the source platform.
  • TWITCH_KEY: Your Twitch stream key (if streaming to Twitch).
  • YOUTUBE_KEY: Your YouTube stream key (if streaming to YouTube).
  • APARAT_KEY: Your Aparat API key (if streaming to Aparat).

The container intelligently checks the provided destination keys and streams only to the specified platforms. This means you can choose to stream to one, two, or all three platforms at the same time.


⁠Getting Started

To get started, run the Docker container with the desired configuration using the following command:

docker run -d --name restreamer \
  -e SOURCE_TYPE="twitch" \          # Specify source platform (twitch, youtube)
  -e SOURCE_NAME="your_channel_name" \ # Replace with your source channel name
  -e TWITCH_KEY="your_twitch_key" \   # Provide your Twitch stream key (optional)
  -e YOUTUBE_KEY="your_youtube_key" \ # Provide your YouTube stream key (optional)
  -e APARAT_KEY="your_aparat_key" \   # Provide your Aparat key (optional)
  longtimedead/restreamer:latest

For switching between different source channels, simply stop the current container, remove it, and run the command again with updated parameters.


⁠Useful Docker Commands
  • List running containers:

    docker ps
    
  • Stop a running container:

    docker stop restreamer
    
  • Remove a stopped container:

    docker rm restreamer
    
  • View logs of a container:

    docker logs restreamer
    

⁠Managing Multiple Containers

You can run multiple containers with different names for different channels, such as:

  • For Twitch:

    docker run -d --name restream_twitch \
      -e SOURCE_TYPE="twitch" \
      -e SOURCE_NAME="new_channel_name" \
      -e TWITCH_KEY="your_twitch_key" \
      -e APARAT_KEY="your_aparat_key" \
      longtimedead/restreamer:latest
    
  • For YouTube:

    docker run -d --name restream_youtube \
      -e SOURCE_TYPE="youtube" \
      -e SOURCE_NAME="new_youtube_channel" \
      -e YOUTUBE_KEY="your_youtube_key" \
      -e APARAT_KEY="your_aparat_key" \
      longtimedead/restreamer:latest
    

⁠Contributing

Feel free to fork this repository, make your changes, and submit pull requests to help improve the project. Contributions are always welcome!


Tag summary

Content type

Image

Digest

sha256:31166c601…

Size

370.5 MB

Last updated

over 1 year ago

docker pull longtimedead/restreamer