From 4dba9b14b6b8bdf2611197c6c2d0e56a05183541 Mon Sep 17 00:00:00 2001 From: Siroco Date: Thu, 18 May 2023 16:57:46 -0500 Subject: [PATCH] Fix: config rtmp for bandwith select --- nginx-rtmp.conf | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/nginx-rtmp.conf b/nginx-rtmp.conf index 2cfc4a0..7055be0 100644 --- a/nginx-rtmp.conf +++ b/nginx-rtmp.conf @@ -10,11 +10,11 @@ rtmp { application entrada { live on; # enciende HLS - hls on; - hls_path /var/www/html/canal/; + #hls on; + #hls_path /var/www/html/canal/; # ajustes de hls - hls_fragment 5; - hls_playlist_length 1m; + #hls_fragment 5; + #hls_playlist_length 1m; # para bloquear el directo # quita el comentario de la lĂ­nea siguiente # deny play all; @@ -23,8 +23,8 @@ rtmp { #on_publish http://docker.for.mac.host.internal:5000/api/stream/start; #on_publish_done http://docker.for.mac.host.internal:5000/api/stream/end; - idle_streams off; - hls_cleanup on; + #idle_streams off; + #hls_cleanup on; ## Transcode video for low latencies @@ -39,10 +39,12 @@ rtmp { hls_fragment 2s; hls_playlist_length 10s; + idle_streams off; + hls_cleanup on; # Pointing this to an SSD is better as this involves lots of IO # hls_path /tmp/hls/; - hls_path /var/www/html/canal/variant/; + hls_path /var/www/html/canal/; # Instruct clients to adjust resolution according to bandwidth #hls_variant _subsd BANDWIDTH=400000;