From 4e7558dfdcb7f7d6be8348c627c5072ce86edd75 Mon Sep 17 00:00:00 2001 From: deflax Date: Mon, 11 Oct 2021 22:09:58 +0000 Subject: [PATCH] fix transcoder source app --- rtmp/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtmp/nginx.conf b/rtmp/nginx.conf index 3ca3535..8045415 100644 --- a/rtmp/nginx.conf +++ b/rtmp/nginx.conf @@ -167,7 +167,7 @@ rtmp { #push rtmp://localhost/hls/$name_src; # Remember to enable an app called HLS! Disable it if you use transcoding using variable bitrates. ## TRANSCODING - exec ffmpeg -i rtmp://localhost/encoder/$name -async 1 -vsync -1 + exec ffmpeg -i rtmp://localhost/live/$name -async 1 -vsync -1 -c:v libx264 -b:v 800k -maxrate 856k -vf "scale=640:trunc(ow/a/2)*2" -c:a aac -ar 48000 -b:a 96k -bufsize 1200k -tune zerolatency -preset veryfast -crf 23 -g 60 -hls_list_size 0 -f flv rtmp://localhost/hls/$name_360p -c:v libx264 -b:v 1400k -maxrate 1498k -vf "scale=842:trunc(ow/a/2)*2" -c:a aac -ar 48000 -b:a 128k -bufsize 2100k -tune zerolatency -preset veryfast -crf 23 -g 60 -hls_list_size 0 -f flv rtmp://localhost/hls/$name_480p -c:v libx264 -b:v 2800k -maxrate 2996k -vf "scale=1280:trunc(ow/a/2)*2" -c:a aac -ar 48000 -b:a 128k -bufsize 4200k -tune zerolatency -preset veryfast -crf 23 -g 60 -hls_list_size 0 -f flv rtmp://localhost/hls/$name_720p