Browse Source

fix: copy the rest of the ffmpeg setup

webhook
auctumnus 4 weeks ago
parent
commit
9cb22964a2
Signed by: autumn GPG Key ID: 4E7B627467259C47
  1. 8
      nginx.conf.template

8
nginx.conf.template

@ -46,8 +46,12 @@ rtmp {
allow play 127.0.0.1;
deny play all;
exec_push /usr/local/bin/ffmpeg -i rtmp://localhost:1935/$app/$name -async 1 -vsync -1;
exec_push /usr/local/bin/ffmpeg -i rtmp://localhost:1935/$app/$name -async 1 -vsync -1
-c:v libx264 -c:a aac -b:v 256k -b:a 64k -vf "scale=480:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost:1935/live/$name_low
-c:v libx264 -c:a aac -b:v 768k -b:a 128k -vf "scale=720:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost:1935/live/$name_mid
-c:v libx264 -c:a aac -b:v 1024k -b:a 128k -vf "scale=960:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost:1935/live/$name_high
-c:v libx264 -c:a aac -b:v 1920k -b:a 128k -vf "scale=1280:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost:1935/live/$name_hd720
-c copy -f flv rtmp://localhost:1935/live/$name_src;
}
# Application for receiving.

Loading…
Cancel
Save