diff --git a/templates/osp-rtmp.conf b/templates/osp-rtmp.conf index ce82cea..e3bab0b 100644 --- a/templates/osp-rtmp.conf +++ b/templates/osp-rtmp.conf @@ -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