Update: HD bandwidth

This commit is contained in:
Siroco 2023-05-19 10:03:16 -05:00
parent 4dba9b14b6
commit 6a273ad204
No known key found for this signature in database
GPG Key ID: 1324098302A514B0

View File

@ -28,7 +28,9 @@ rtmp {
## 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 125k -c:a copy -s 426x240 -r 30 -sws_flags bilinear -tune zerolatency -preset veryfast -f flv rtmp://localhost/show/$name_sd
-c:v libx264 -x264opts keyint=60:no-scenecut -c:a copy -r 30 -tune zerolatency -preset veryfast -f flv rtmp://localhost/show/$name_hd;
} }
application show { application show {
@ -47,9 +49,8 @@ rtmp {
hls_path /var/www/html/canal/; hls_path /var/www/html/canal/;
# Instruct clients to adjust resolution according to bandwidth # Instruct clients to adjust resolution according to bandwidth
#hls_variant _subsd BANDWIDTH=400000; hls_variant _sd BANDWIDTH=400000;
hls_variant _sd BANDWIDTH=1000000; hls_variant _hd BANDWIDTH=5000000;
#hls_variant _hd BANDWIDTH=5000000;
} }
} }