Update: HD bandwidth
This commit is contained in:
parent
4dba9b14b6
commit
6a273ad204
@ -28,7 +28,9 @@ rtmp {
|
||||
|
||||
|
||||
## 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 {
|
||||
@ -47,9 +49,8 @@ rtmp {
|
||||
hls_path /var/www/html/canal/;
|
||||
|
||||
# Instruct clients to adjust resolution according to bandwidth
|
||||
#hls_variant _subsd BANDWIDTH=400000;
|
||||
hls_variant _sd BANDWIDTH=1000000;
|
||||
#hls_variant _hd BANDWIDTH=5000000;
|
||||
hls_variant _sd BANDWIDTH=400000;
|
||||
hls_variant _hd BANDWIDTH=5000000;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user