diff --git a/nginx-rtmp.conf b/nginx-rtmp.conf index 7055be0..cfcfabc 100644 --- a/nginx-rtmp.conf +++ b/nginx-rtmp.conf @@ -28,7 +28,9 @@ rtmp { ## Transcode video for low latencies - exec ffmpeg -i rtmp://localhost/entrada/$name -c:v libx264 -x264opts keyint=60:no-scenecut -b:v 450k -c:a copy -s 854x480 -r 30 -sws_flags bilinear -tune zerolatency -preset veryfast -f flv rtmp://localhost/show/$name_sd; + exec ffmpeg -i rtmp://localhost/entrada/$name + -c:v libx264 -x264opts keyint=60:no-scenecut -b:v 125k -c:a copy -s 426x240 -r 30 -sws_flags bilinear -tune zerolatency -preset veryfast -f flv rtmp://localhost/show/$name_sd + -c:v libx264 -x264opts keyint=60:no-scenecut -c:a copy -r 30 -tune zerolatency -preset veryfast -f flv rtmp://localhost/show/$name_hd; } application show { @@ -47,9 +49,8 @@ rtmp { hls_path /var/www/html/canal/; # Instruct clients to adjust resolution according to bandwidth - #hls_variant _subsd BANDWIDTH=400000; - hls_variant _sd BANDWIDTH=1000000; - #hls_variant _hd BANDWIDTH=5000000; + hls_variant _sd BANDWIDTH=400000; + hls_variant _hd BANDWIDTH=5000000; } }