Fix: config rtmp
This commit is contained in:
parent
3d3064e73e
commit
fc4397a5ed
@ -13,8 +13,8 @@ rtmp {
|
|||||||
hls on;
|
hls on;
|
||||||
hls_path /var/www/html/canal/;
|
hls_path /var/www/html/canal/;
|
||||||
# ajustes de hls
|
# ajustes de hls
|
||||||
hls_fragment 3;
|
hls_fragment 5;
|
||||||
hls_playlist_length 60;
|
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,6 +23,10 @@ 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;
|
||||||
|
hls_cleanup on;
|
||||||
|
|
||||||
|
|
||||||
## Transcode video for low latencies
|
## 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 450k -c:a copy -s 854x480 -r 30 -sws_flags bilinear -tune zerolatency -preset veryfast -f flv rtmp://localhost/show/$name_sd;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user