1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

change server name to demo, dev used for development vhost

This commit is contained in:
winlin 2013-12-01 14:08:28 +08:00
parent 35676920be
commit 9d65cd1c9f
2 changed files with 52 additions and 15 deletions

View file

@ -8,6 +8,7 @@ listen 1935;
chunk_size 65000;
# vhost list, the __defaultVhost__ is the default vhost
# for which cannot identify the required vhost.
# for default demo.
vhost __defaultVhost__ {
enabled on;
gop_cache on;
@ -15,7 +16,7 @@ vhost __defaultVhost__ {
hls_path ./objs/nginx/html;
hls_fragment 5;
hls_window 30;
#forward 127.0.0.1:19350;
forward 127.0.0.1:19350;
transcode {
enabled on;
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
@ -68,6 +69,42 @@ vhost __defaultVhost__ {
}
}
}
# for development
vhost dev {
enabled on;
gop_cache on;
hls on;
hls_path ./objs/nginx/html;
hls_fragment 5;
hls_window 30;
forward dev:19350;
transcode {
enabled on;
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
engine dev{
enabled on;
vfilter {
}
vcodec libx264;
vbitrate 300;
vfps 20;
vwidth 768;
vheight 320;
vthreads 1;
vprofile baseline;
vpreset superfast;
vparams {
}
acodec libaacplus;
abitrate 30;
asample_rate 44100;
achannels 2;
aparams {
}
output rtmp://[vhost]:[port]/[app]/[stream]_dev;
}
}
}
# the mirror filter of ffmpeg, @see: http://ffmpeg.org/ffmpeg-filters.html#Filtering-Introduction
vhost mirror.transcode.vhost.com {
transcode {