Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #user nobody;
- worker_processes 1;
- #error_log logs/error.log;
- #error_log logs/error.log notice;
- #error_log logs/error.log info;
- #pid logs/nginx.pid;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- # '$status $body_bytes_sent "$http_referer" '
- # '"$http_user_agent" "$http_x_forwarded_for"';
- #access_log logs/access.log main;
- sendfile on;
- #tcp_nopush on;
- #keepalive_timeout 0;
- keepalive_timeout 65;
- #gzip on;
- server {
- listen 80;
- server_name localhost;
- #charset koi8-r;
- #access_log logs/host.access.log main;
- location / {
- root html;
- index index.html index.htm;
- }
- #error_page 404 /404.html;
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
- #
- #location ~ \.php$ {
- # proxy_pass http://127.0.0.1;
- #}
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- #
- #location ~ \.php$ {
- # root html;
- # fastcgi_pass 127.0.0.1:9000;
- # fastcgi_index index.php;
- # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
- # include fastcgi_params;
- #}
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- #location ~ /\.ht {
- # deny all;
- #}
- }
- # another virtual host using mix of IP-, name-, and port-based configuration
- #
- #server {
- # listen 8000;
- # listen somename:8080;
- # server_name somename alias another.alias;
- # location / {
- # root html;
- # index index.html index.htm;
- # }
- #}
- # HTTPS server
- #
- #server {
- # listen 443 ssl;
- # server_name localhost;
- # ssl_certificate cert.pem;
- # ssl_certificate_key cert.key;
- # ssl_session_cache shared:SSL:1m;
- # ssl_session_timeout 5m;
- # ssl_ciphers HIGH:!aNULL:!MD5;
- # ssl_prefer_server_ciphers on;
- # location / {
- # root html;
- # index index.html index.htm;
- # }
- #}
- }
- rtmp {
- server {
- listen 1935;
- chunk_size 4000;
- ping 1m;
- ping_timeout 10s;
- drop_idle_publisher 10s;
- ####################################################################
- #
- # ######### ######## ######## #########
- # # # # #
- # # # # #
- # # ######## ####### #
- # # # # #
- # # # # #
- # # ######## ######## #
- #
- ####################################################################
- application testerT
- {
- # Receives stream, removes key, sends to test transcoder
- live on;
- meta copy;
- push rtmp://localhost/transcoderT/;
- }
- application transcoderT
- {
- live on;
- meta copy;
- # 1080 all sites
- exec ffmpeg -i rtmp://localhost/transcoderT/
- -b:v 6500k
- -minrate 6000k
- -maxrate 7000k
- -bufsize 7800k
- -vcodec libx264
- -preset faster
- -s 1920x1080
- -sws_flags bicubic
- # -vf unsharp=3:3:1.5 # Video sharpening
- -r 60
- -x264-params nal-hrd=cbr:force-cfr=1:keyint=120
- -acodec aac
- -ab 160k
- -strict -2
- -f flv rtmp://localhost/tester/;
- }
- application tester
- {
- # Sends to test twitch sneakyjoetest and saves local record
- live on;
- push rtmp://live-ber.twitch.tv/app/liv******************;
- recorder all
- {
- record all;
- record_path /home/sneakyjoe/RECS;
- record_suffix %Y.%m.%d___%H-%M___1080_test.flv;
- }
- }
- #######################################################################################
- #
- # ######## ######## ######## ######## # # # ######## ########
- # # # # # # # # # # # #
- # # # # # # # # # # # #
- # # ## ######## # ######## # # # ######## # ##
- # ##### # # # # # # # #####
- # # ## # # # # # # # # ##
- # # ## ######## ######## ######## # ## ######## # ##
- #
- #######################################################################################
- application receiver
- {
- live on;
- meta copy;
- push rtmp://localhost/transcoder;
- }
- application receiver-art
- {
- live on;
- meta copy;
- push rtmp://localhost/transcoder-art;
- }
- #########################################################################################################################################################################
- #
- # ######### ######## #### # # ######## ####### ####### ####### ######## ######## ###### #### # # ######## ########
- # # # # # # ## # # # # # # # # # # # # # # ## ## # #
- # # # # # # # # # # # # # # # # # # # # # # # # # # #
- # # # ## ######## # # # ####### # # # # # ######## # ## # ######## # ## # ######## #######
- # # ##### # # # # # # # # # # # # ##### # #### # # # # # #
- # # # ## # # # # # # # # # # # # # ## # # # # # # # #
- # # # ## # # # ## ######## ####### ####### ####### ######## # ## ###### # # # # ######## ########
- #
- ##########################################################################################################################################################################
- application transcoder
- {
- live on;
- meta copy;
- # 1080 all sites
- exec ffmpeg -i rtmp://localhost/transcoder/
- -b:v 6500k
- -minrate 6000k
- -maxrate 7000k
- -bufsize 7800k
- -vcodec libx264
- -preset faster
- -s 1920x1080
- -sws_flags bicubic
- # -vf unsharp=3:3:1.5 # Video sharpening
- -r 60
- -x264-params nal-hrd=cbr:force-cfr=1:keyint=120
- -acodec aac
- -ab 160k
- -strict -2
- # -f flv rtmp://localhost/tester/
- -f flv rtmp://localhost/transcoded-1080/
- -loglevel verbose
- 2>>/home/sneakyjoe/ffmpeg-log.txt
- ;
- # 560 periscope
- exec ffmpeg -i rtmp://localhost/transcoder/
- # -vf drawtext="fontfile=/home/sneakyjoe/RECS/font/consolas.ttf:text='1080p-60 available at sneakyjoe.ru':fontcolor=white:fontsize=33:box=1:boxcolor=red@0.5:boxborderw=5:x=20:y=20"
- -b:v 740k
- -minrate 600k
- -maxrate 800k
- -bufsize 800k
- -vcodec libx264
- -preset fast
- -s 960x540
- -sws_flags lanczos
- -r 30
- -x264-params nal-hrd=cbr:force-cfr=1:keyint=60
- -acodec aac
- -ab 90k
- -strict -2
- -f flv rtmp://localhost/transcoded-560/
- ;
- }
- #########################################################################################################################################################################
- #
- # ######### ######## #### # # ######## ####### ####### ####### ######## ######## #### ######## #########
- # # # # # # ## # # # # # # # # # # # # # # #
- # # # # # # # # # # # # # # # # # # # # # # #
- # # # ## ######## # # # ####### # # # # # ######## # ## ######## # ## #
- # # ##### # # # # # # # # # # # # ##### # # ##### #
- # # # ## # # # # # # # # # # # # # ## # # # ## #
- # # # ## # # # ## ######## ####### ####### ####### ######## # ## # # # ## #
- #
- ##########################################################################################################################################################################
- application transcoder-art
- {
- live on;
- meta copy;
- # 1080 all sites
- exec ffmpeg -i rtmp://localhost/transcoder-art/
- -b:v 1200k
- -minrate 800k
- -maxrate 1500k
- -bufsize 2000k
- -vcodec libx264
- -preset faster
- -s 1920x1080
- -sws_flags bicubic
- # -vf unsharp=3:3:1.5 # Video sharpening
- -r 30
- -x264-params nal-hrd=cbr:force-cfr=1:keyint=60
- -acodec aac
- -ab 160k
- -strict -2
- # -f flv rtmp://localhost/tester/;
- -f flv rtmp://localhost/transcoded-1080-art/;
- # 560 periscope
- exec ffmpeg -i rtmp://localhost/transcoder-art/
- -b:v 740k
- -minrate 600k
- -maxrate 800k
- -bufsize 800k
- -vcodec libx264
- -preset fast
- -s 1280x720
- -sws_flags lanczos
- -r 30
- -x264-params nal-hrd=cbr:force-cfr=1:keyint=60
- -acodec aac
- -ab 90k
- -strict -2
- -f flv rtmp://localhost/transcoded-720-art/;
- }
- #########################################################################################################################################################################
- #
- # ######### ######## #### # # ######## ####### ####### ####### ######## ######## ######## ######## ######## ######### ######## ########
- # # # # # # ## # # # # # # # # # # # # # # # # # #
- # # # # # # # # # # # # # # # # # # # # # # # # # #
- # # # ## ######## # # # ####### # # # # # ######## # ## # ## ######## ####### # # ## ########
- # # ##### # # # # # # # # # # # # ##### ##### # # # ##### #
- # # # ## # # # # # # # # # # # # # ## # ## # # # # ## #
- # # # ## # # # ## ######## ####### ####### ####### ######## # ## # ## ######## ######## # # ## ########
- #
- ##########################################################################################################################################################################
- application transcoderRestream
- {
- live on;
- meta copy;
- # 1080 all sites
- exec ffmpeg -i rtmp://localhost/transcoderRestream/
- -b:v 7000k
- -minrate 6500k
- -maxrate 7500k
- -bufsize 7800k
- -vcodec libx264
- -preset fast
- # -s 1920x1080
- -sws_flags bicubic
- # -vf unsharp=3:3:1.5 # Video sharpening
- -r 60
- -x264-params nal-hrd=cbr:force-cfr=1:keyint=120
- -acodec aac
- -ab 160k
- -strict -2
- # -f flv rtmp://localhost/tester/
- -f flv rtmp://localhost/restreamMain
- -loglevel verbose
- 2>>/home/sneakyjoe/ffmpeg-log.txt
- ;
- }
- application restreamMain
- {
- # 1920x1080
- live on;
- ## Restream.io main 1099
- push rtmp://eu-central.restream.io/live/**************************;
- recorder all
- {
- record all;
- record_path /home/sneakyjoe/RECS;
- record_suffix %Y.%m.%d___%H-%M___1080.flv;
- }
- }
- ####################################################################################################################
- #
- # ###### #### # # ######## ######## ####### # # #########
- # # # # # ## ## # # # # # # #
- # # # # # # # # # # # # # # #
- # # ######## # ## # ######## ####### # # # # #
- # # #### # # # # # # # # # # #
- # # # # # # # # # # # # ## #
- # ###### # # # # ######## ######## ####### ##### # #
- #
- #####################################################################################################################
- application transcoded-1080
- {
- # 1920x1080
- live on;
- ## Twitch Source
- push rtmp://live-ber.twitch.tv/app/************************;
- ## Restream's official twitch
- # push rtmp://live-ber.twitch.tv/app/**************************;
- ## YouTube Source
- push rtmp://a.rtmp.youtube.com/live2/**************************;
- ## Steam
- push rtmp://upload.broadcast.fra.steamstatic.com/app/**************************;
- ## Restream.io -> ya.ru side streams
- push rtmp://eu-frankfurt1.restream.io:1936/live/**************************;
- recorder all
- {
- record all;
- record_path /home/sneakyjoe/RECS;
- record_suffix %Y.%m.%d___%H-%M___1080.flv;
- }
- }
- application transcoded-560
- {
- # 960x540
- live on;
- # Restream dontrash low quality
- push rtmp://eu-central.restream.io/live/**************************;
- recorder all
- {
- record all;
- record_path /home/sneakyjoe/RECS;
- record_suffix %Y.%m.%d___%H-%M____560.flv;
- }
- }
- ####################################################################################################################
- #
- # #### ######## ######### ####### # # #########
- # # # # # # # # # # #
- # # # # # # # # # # #
- # ######## # ## # # # # # #
- # # # ##### # # # # # #
- # # # # ## # # # # ## #
- # # # # ## # ####### ##### # #
- #
- #####################################################################################################################
- application transcoded-1080-art
- {
- live on;
- # Twitch Source
- push rtmp://live-ber.twitch.tv/app/**************************;
- # YouTube Source
- push rtmp://a.rtmp.youtube.com/live2/**************************;
- # Picarto
- push rtmp://live.eu-west1.picarto.tv/golive/**************************;
- recorder all
- {
- record all;
- record_path /home/sneakyjoe/RECS;
- record_suffix %Y.%m.%d___%H-%M___1080.flv;
- }
- }
- application transcoded-720-art
- {
- live on;
- # Restream dontrash low quality (periscope only active)
- push rtmp://eu-central.restream.io/live/**************************;
- recorder all
- {
- record all;
- record_path /home/sneakyjoe/RECS;
- record_suffix %Y.%m.%d___%H-%M____560.flv;
- }
- }
- #####################################################################################################################
- #
- # # # ######## ####### #### # # ######## ########
- # # # # # # # # # ## # # #
- # # # # # # # # # # # # # #
- # # # # ## # # ######## # # # # ########
- # # # ##### # # # # # # # # #
- # # # # ## # # # # # # # # #
- # ## # ## ####### # # # ## ######## ########
- #
- #####################################################################################################################
- # TWITCH + PERISCOPE ONLY
- application twitchpscp
- {
- live on;
- meta copy;
- # 1080 all sites
- exec ffmpeg -i rtmp://localhost/twitchpscp/
- -b:v 6000k
- -minrate 5500k
- -maxrate 6500k
- -bufsize 7000k
- -vcodec libx264
- -preset faster
- -s 1920x1080
- -sws_flags bicubic
- # -vf unsharp=3:3:1.5 # Video sharpening
- -r 60
- -x264-params nal-hrd=cbr:force-cfr=1:keyint=120
- -acodec aac
- -ab 160k
- -strict -2
- -f flv rtmp://live-ber.twitch.tv/app/**************************;
- # 560 periscope
- exec ffmpeg -i rtmp://localhost/twitchpscp/
- -b:v 740k
- -minrate 600k
- -maxrate 800k
- -bufsize 800k
- -vcodec libx264
- -preset fast
- -s 960x540
- -sws_flags lanczos
- -r 30
- -x264-params nal-hrd=cbr:force-cfr=1:keyint=60
- -acodec aac
- -ab 90k
- -strict -2
- -f flv rtmp://localhost/transcoded-560/;
- }
- #####################################################################################################################
- #
- # # # ####### ####### ####### #### ######## #########
- # # # # # # # # # # # #
- # # # # # # # # # # # #
- # # # # # # # # ######## ####### #
- # # # # # # # # # # # #
- # # # # # # # # # # # #
- # ## ####### ####### ####### # # ######## #
- #
- #####################################################################################################################
- application vodcaster
- {
- live on;
- meta copy;
- # 1080 all sites
- push rtmp://localhost/transcoded-1080/;
- # push rtmp://localhost/tester/;
- # 560 periscope
- exec ffmpeg -i rtmp://localhost/vodcaster/ -b:v 740k -minrate 600k -maxrate 800k -bufsize 800k -vcodec libx264 -preset faster -s 960x540 -sws_flags lanczos -r 30 -x264-params nal-hrd=cbr:force-cfr=1:keyint=60 -acodec aac -ab 90k -strict -2 -f flv rtmp://localhost/transcoded-560/;
- }
- ########################################
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement