Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #user nobody;
- worker_processes 8;
- error_log logs/rtmp_error.log debug;
- pid logs/nginx.pid;
- 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;
- server {
- listen 80;
- server_name localhost;
- # rtmp stat
- location /stat {
- rtmp_stat all;
- rtmp_stat_stylesheet stat.xsl;
- }
- location /stat.xsl {
- # you can move stat.xsl to a different location
- root html;
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- }
- }
- rtmp {
- server {
- listen 1935;
- chunk_size 4096;
- #publish_time_fix on;
- #publish_time_fix2 on;
- # Transcoding
- application big {
- live on;
- record off;
- exec ffmpeg -i rtmp://localhost/big/1080p -vcodec libx264 -preset fast -x264opts nal-hrd=cbr:force-cfr=1:keyint=60 -b:v 3500k -maxrate 3500k -bufsize 3500k -s 1280x720 -sws_flags lanczos -r 30 -acodec copy -f flv rtmp://localhost/small/720p
- }
- application small {
- live on;
- record off;
- interleave on;
- meta on;
- publish_notify on;
- wait_key on;
- wait_video on;
- push rtmp://live-arn.justin.tv/app/<key>; #<stream1>
- # push rtmp://live-arn.justin.tv/app/<key>; #<teststream1>
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement