Improve audo quality.

This commit is contained in:
Orne Brocaar 2015-03-10 15:53:47 -03:00
parent 9b985d1d4c
commit 304ba4fd72

View File

@ -13,10 +13,10 @@ rtmp {
live on;
exec ffmpeg -i rtmp://localhost:1935/encoder/$name
-c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 2500k -f flv -g 30 -r 30 -s 1280x720 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_720p2564kbs
-c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 1800k -f flv -g 30 -r 30 -s 960x540 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_540p1864kbs
-c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 1200k -f flv -g 30 -r 30 -s 640x360 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_360p1264kbs
-c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 686k -f flv -g 30 -r 30 -s 640x360 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_360p750kbs
-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;
}
@ -29,10 +29,10 @@ rtmp {
hls_path /data/hls;
hls_nested on;
hls_variant _720p2564kbs BANDWIDTH=2564000,RESOLUTION=1280x720;
hls_variant _540p1864kbs BANDWIDTH=1864000,RESOLUTION=960x540;
hls_variant _360p1264kbs BANDWIDTH=1264000,RESOLUTION=640x360;
hls_variant _360p750kbs BANDWIDTH=750000,RESOLUTION=640x360;
hls_variant _720p2884kbs BANDWIDTH=2564000,RESOLUTION=1280x720;
hls_variant _540p2183kbs BANDWIDTH=1864000,RESOLUTION=960x540;
hls_variant _360p1328kbs BANDWIDTH=1264000,RESOLUTION=640x360;
hls_variant _360p818kbs BANDWIDTH=750000,RESOLUTION=640x360;
hls_variant _270p464kbs BANDWIDTH=464000,RESOLUTION=480x270;
hls_variant _270p264kbs BANDWIDTH=264000,RESOLUTION=480x270;
}