revert 'improve nginx rtmp routing' <- push to live still problem

This commit is contained in:
Geno 2020-12-09 11:29:30 +01:00
parent 8760ca7188
commit b1d96a16e7
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ rtmp {
allow play 127.0.0.1;
deny play all;
push rtmp://127.0.0.1:1935/live/$name;
push rtmp://127.0.0.1:1935/live/;
hls on;
hls_path {{ osp_edge_http_path }}/live;
@ -41,7 +41,7 @@ rtmp {
allow play 127.0.0.1;
deny play all;
push rtmp://127.0.0.1:1935/live/$name;
push rtmp://127.0.0.1:1935/live/;
exec ffmpeg -i rtmp://127.0.0.1:1935/stream-data-adapt/$name
-c:v libx264 -c:a aac -b:a 192k -vf "scale=-2:1080" -vsync 1 -copyts -start_at_zero -sws_flags lanczos -r 30 -g 30 -keyint_min 30 -force_key_frames "expr:gte(t,n_forced*1)" -tune zerolatency -preset ultrafast -crf 28 -maxrate 4192k -bufsize 8384k -threads 4 -f flv rtmp://127.0.0.1:1935/show/$name_1080