Fix: config rtmp

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

View File

@ -13,8 +13,8 @@ rtmp {
hls on;
hls_path /var/www/html/canal/;
# ajustes de hls
hls_fragment 3;
hls_playlist_length 60;
hls_fragment 5;
hls_playlist_length 1m;
# para bloquear el directo
# quita el comentario de la línea siguiente
# deny play all;
@ -23,6 +23,10 @@ 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;
## 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;
}