Align bitrates with Youtube.
https://support.google.com/youtube/answer/2853702?hl=en
This commit is contained in:
parent
18eb8b2445
commit
4dd04cce84
24
nginx.conf
24
nginx.conf
@ -13,12 +13,12 @@ rtmp {
|
||||
live on;
|
||||
|
||||
exec ffmpeg -i rtmp://localhost:1935/encoder/$name
|
||||
-c:a libfdk_aac -b:a 384k -c:v libx264 -b:v 2500k -f flv -g 30 -r 30 -s 1280x720 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_720p2884kbs
|
||||
-c:a libfdk_aac -b:a 384k -c:v libx264 -b:v 1800k -f flv -g 30 -r 30 -s 960x540 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_540p2183kbs
|
||||
-c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 1200k -f flv -g 30 -r 30 -s 640x360 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_360p1328kbs
|
||||
-c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 686k -f flv -g 30 -r 30 -s 640x360 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_360p818kbs
|
||||
-c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 400k -f flv -g 15 -r 15 -s 480x270 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_270p464kbs
|
||||
-c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 200k -f flv -g 15 -r 15 -s 480x270 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_270p264kbs;
|
||||
-c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 4500k -f flv -g 30 -r 30 -s 1920x1080 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_1080p4628kbs
|
||||
-c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 2500k -f flv -g 30 -r 30 -s 1280x720 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_720p2628kbs
|
||||
-c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 1000k -f flv -g 30 -r 30 -s 854x480 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_480p1128kbs
|
||||
-c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 750k -f flv -g 30 -r 30 -s 640x360 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_360p878kbs
|
||||
-c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 400k -f flv -g 30 -r 30 -s 426x240 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_240p528kbs
|
||||
-c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 200k -f flv -g 15 -r 15 -s 426x240 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_240p264kbs;
|
||||
}
|
||||
|
||||
application hls {
|
||||
@ -29,12 +29,12 @@ rtmp {
|
||||
hls_path /data/hls;
|
||||
hls_nested on;
|
||||
|
||||
hls_variant _720p2884kbs BANDWIDTH=2884000,RESOLUTION=1280x720;
|
||||
hls_variant _540p2183kbs BANDWIDTH=2183000,RESOLUTION=960x540;
|
||||
hls_variant _360p1328kbs BANDWIDTH=1328000,RESOLUTION=640x360;
|
||||
hls_variant _360p818kbs BANDWIDTH=818000,RESOLUTION=640x360;
|
||||
hls_variant _270p464kbs BANDWIDTH=464000,RESOLUTION=480x270;
|
||||
hls_variant _270p264kbs BANDWIDTH=264000,RESOLUTION=480x270;
|
||||
hls_variant _1080p4628kbs BANDWIDTH=4628000,RESOLUTION=1920x1080;
|
||||
hls_variant _720p2628kbs BANDWIDTH=2628000,RESOLUTION=1280x720;
|
||||
hls_variant _480p1128kbs BANDWIDTH=1128000,RESOLUTION=854x480;
|
||||
hls_variant _360p878kbs BANDWIDTH=878000,RESOLUTION=640x360;
|
||||
hls_variant _240p528kbs BANDWIDTH=528000,RESOLUTION=426x240;
|
||||
hls_variant _240p264kbs BANDWIDTH=264000,RESOLUTION=426x240;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user