Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 8;
- error_log logs/error.log debug;
- events {
- worker_connections 10240;
- }
- rtmp {
- server {
- listen 1935;
- max_streams 1024;
- chunk_size 2048;
- application live {
- live on;
- wait_key on;
- wait_video on;
- sync 10ms;
- push rtmp;
- hls on;
- hls_path temp/hls;
- hls_fragment 2s;
- }
- }
- }
- http {
- server {
- listen 8080;
- location / {
- root html;
- }
- location /stat {
- rtmp_stat all;
- rtmp_stat_stylesheet stat.xsl;
- }
- location /stat.xsl {
- root html;
- }
- location /hls {
- types{
- application/vnd.apple.mpegurl m3u8;
- video/mp2t ts;
- }
- alias temp/hls;
- expires -1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement