From 6a273ad2045ba4a115f3e17e48402eaf94188ab0 Mon Sep 17 00:00:00 2001 From: Siroco Date: Fri, 19 May 2023 10:03:16 -0500 Subject: [PATCH] Update: HD bandwidth --- nginx-rtmp.conf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; } }