/nginx-rtmp-multi-stream

Docker Compose setup to push a stream to multiple providers like facebook, twitch or youtube. Using stunnel to support rtmps for facebook.

Primary LanguageDockerfileMIT LicenseMIT

nginx-rtmp-multi-stream

Docker Compose setup to push a stream to multiple providers like facebook, twitch or youtube. Using stunnel to support rtmps for facebook. This project is based on the work of Sebastián Ramírez and Jessica Hamilton.

How to use

Install Docker: https://www.docker.com/get-started
Install Docker Compose: https://docs.docker.com/compose/install/
Install OBS: https://obsproject.com

1. Edit nginx.conf:

  • Remove push rtmp://... lines if you don't want to use this provider (or add other ones below the lines)
  • Replace streamkey with the key from your provider

2a. Start the rtmp server:

  • Open your terminal, go into the nginx-rtmp-multi-stream folder
  • Start the rtmp server with the current providers: docker-compose up --build

2b. Update the rtmp server:

  • Stop the server
  • Edit the nginx.conf file
  • Restart the rtmp server with the current providers: docker-compose up --build

3. Edit the stream settings in OBS:

  • Set service to custom
  • Enter as Server: rtmp://0.0.0.0/live
  • Use a custom stream key you want

Credits

License

This project is licensed under the terms of the MIT License.