2014-03-18 07:38:34 +00:00
|
|
|
# the config for srs to delivery hls
|
2014-10-24 03:35:06 +00:00
|
|
|
# @see https://github.com/winlinvip/simple-rtmp-server/wiki/v1_CN_SampleHLS
|
2014-03-18 07:38:34 +00:00
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
2014-03-12 04:07:16 +00:00
|
|
|
listen 1935;
|
2014-07-26 07:34:45 +00:00
|
|
|
max_connections 1000;
|
2014-03-12 04:07:16 +00:00
|
|
|
vhost __defaultVhost__ {
|
|
|
|
hls {
|
|
|
|
enabled on;
|
|
|
|
hls_path ./objs/nginx/html;
|
|
|
|
hls_fragment 10;
|
|
|
|
hls_window 60;
|
|
|
|
}
|
|
|
|
transcode {
|
|
|
|
enabled on;
|
|
|
|
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
|
|
|
engine ff {
|
|
|
|
enabled on;
|
|
|
|
vcodec copy;
|
|
|
|
acodec libaacplus;
|
|
|
|
abitrate 45;
|
|
|
|
asample_rate 44100;
|
|
|
|
achannels 2;
|
|
|
|
aparams {
|
|
|
|
}
|
|
|
|
output rtmp://127.0.0.1:[port]/[app]?vhost=[vhost]/[stream]_[engine];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|