Created
April 7, 2020 16:10
-
-
Save channprj/db2a15b7a09a9f3c7142af5fc69be057 to your computer and use it in GitHub Desktop.
Nginx conf for simultaneous streaming
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 2; | |
# error_log logs/error.log debug; | |
error_log off; | |
events { | |
worker_connections 1024; | |
} | |
rtmp { | |
server { | |
listen 1935; | |
chunk_size 4096; | |
access_log off; | |
application live { | |
live on; | |
record off; | |
# meta copy; | |
# live_auth off; | |
# live_auth_secret <SAMPLE_PRIVATE_KEY>; | |
# twitch | |
push rtmp://live-sel.twitch.tv/app/<TWITCH_STREAMING_KEY>; | |
# youtube | |
push rtmp://x.rtmp.youtube.com/live2/<YOUTUBE_ID>.<YOUTUBE_STREAMING_KEY>; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use https://github.com/arut/nginx-rtmp-module/releases with this conf