From a6661c630ec7f0b2d444940fdefb1d709ea54013 Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Tue, 10 Mar 2015 15:30:08 -0300 Subject: [PATCH] Change to superfast preset, set profile to baseline. --- nginx.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nginx.conf b/nginx.conf index 458e7ef..829a1e6 100644 --- a/nginx.conf +++ b/nginx.conf @@ -13,12 +13,12 @@ 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 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 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 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 rtmp://localhost:1935/hls/$name_360p750kbs - -c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 400k -f flv -g 15 -r 15 -s 480x270 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 rtmp://localhost:1935/hls/$name_270p264kbs; + -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 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; } application hls {