Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- error_log logs/error.log debug;
- pid logs/nginx.pid;
- user www-data www-data;
- events {
- worker_connections 1024;
- }
- http {
- allow all;
- deny all;
- access_log logs/rtmp_access.log;
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- client_max_body_size 100M;
- server {
- listen 80;
- server_name localhost;
- # rtmp stat
- location /stat {
- rtmp_stat all;
- rtmp_stat_stylesheet stat.xsl;
- }
- location / {
- root html;
- index index.html index.htm;
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- }
- }
- rtmp {
- server {
- listen 1935;
- max_message 5M;
- chunk_size 8192;
- application transcoder {
- live on;
- meta copy;
- exec ffmpeg -i rtmp://192.168.1.223/transcoder/origin -c:v libx264 -preset medium -b:v 6000k -minrate 6000k -maxrate 6000k -bufsize 12000k -g 120 -keyint_min 60 -sws_flags lanczos -s 1600x900 -qcomp 0.4 -direct-pred spatial -r 60 -pix_fmt yuv420p -c:a aac -b:a 320k -ac 2 -ar 48000 -f flv rtmp://192.168.1.223/twitch/passed;
- }
- application twitch {
- live on;
- meta copy;
- push rtmp://lax.contribute.live-video.net/app/[STREAMKEY];
- }
- }
- }
Add Comment
Please, Sign In to add comment