Fix: config rtmp for bandwith select

This commit is contained in:
Siroco 2023-05-18 16:57:46 -05:00
parent fc4397a5ed
commit 4dba9b14b6
No known key found for this signature in database
GPG Key ID: 1324098302A514B0

View File

@ -10,11 +10,11 @@ rtmp {
application entrada { application entrada {
live on; live on;
# enciende HLS # enciende HLS
hls on; #hls on;
hls_path /var/www/html/canal/; #hls_path /var/www/html/canal/;
# ajustes de hls # ajustes de hls
hls_fragment 5; #hls_fragment 5;
hls_playlist_length 1m; #hls_playlist_length 1m;
# para bloquear el directo # para bloquear el directo
# quita el comentario de la línea siguiente # quita el comentario de la línea siguiente
# deny play all; # deny play all;
@ -23,8 +23,8 @@ rtmp {
#on_publish http://docker.for.mac.host.internal:5000/api/stream/start; #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; #on_publish_done http://docker.for.mac.host.internal:5000/api/stream/end;
idle_streams off; #idle_streams off;
hls_cleanup on; #hls_cleanup on;
## Transcode video for low latencies ## Transcode video for low latencies
@ -39,10 +39,12 @@ rtmp {
hls_fragment 2s; hls_fragment 2s;
hls_playlist_length 10s; hls_playlist_length 10s;
idle_streams off;
hls_cleanup on;
# Pointing this to an SSD is better as this involves lots of IO # Pointing this to an SSD is better as this involves lots of IO
# hls_path /tmp/hls/; # 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 # Instruct clients to adjust resolution according to bandwidth
#hls_variant _subsd BANDWIDTH=400000; #hls_variant _subsd BANDWIDTH=400000;