Files
multistream_rtmp/README.md
2024-09-05 06:49:27 +02:00

42 lines
1.1 KiB
Markdown

# Project Overview
This project provides a Bash script `install_nginx_rtmp.sh` to set up an Nginx server with the RTMP module, enabling live streaming on Twitch and YouTube. It also includes firewall configuration for server security.
## Installation & Usage
### Prerequisites
* An Debian server with root access
* Twitch and YouTube stream keys
* IP address of the machine authorized to publish and read the stream
### Installation
1. Run the script as root:
```bash
sudo bash install_nginx_rtmp.sh
```
Follow the on-screen instructions.
### Usage
1. Configure your streaming software (e.g., OBS) to send the RTMP stream to:
```
rtmp://<server_ip_address>/live
```
The stream will be automatically broadcast on Twitch and YouTube.
2. Play the stream locally on VLC:
* Go to `Media > Open Network Stream...`
* Enter `rtmp://<server_ip_address>/live`
## Important Notes
* Ensure ports 1935 and 22 are open in your external firewall.
* This script is an example; adapt it to your specific needs.
* Live streaming consumes significant bandwidth.