Skip to content

Instantly share code, notes, and snippets.

@mikoim
Created October 28, 2016 21:22
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mikoim/4f85ba63f7b416d71fad4a14bc4068d0 to your computer and use it in GitHub Desktop.
Save mikoim/4f85ba63f7b416d71fad4a14bc4068d0 to your computer and use it in GitHub Desktop.
Split RTMP Stream with nginx-rtmp-module
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 8192;
allow publish 192.168.0.0/24;
deny publish all;
application stream {
live on;
meta copy;
push_reconnect 1s;
push rtmp://live-tyo.twitch.tv/app/YOUR_KEY;
push rtmp://a.rtmp.youtube.com/live2/YOUR_KEY;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment