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 {
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;