mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
update conf
This commit is contained in:
parent
82190d7fa2
commit
e4ea965a3a
1 changed files with 12 additions and 5 deletions
|
@ -23,8 +23,7 @@ vhost __defaultVhost__ {
|
||||||
engine ld{
|
engine ld{
|
||||||
enabled on;
|
enabled on;
|
||||||
vfilter {
|
vfilter {
|
||||||
i ./doc/ffmpeg-min.png;
|
vf 'drawtext=text=SimpleRtmpServer(SRS):x=10:y=10:fontcolor=#cccccc:fontfile=./doc/FreeSerifBold.ttf';
|
||||||
filter_complex 'overlay=10:10';
|
|
||||||
}
|
}
|
||||||
vcodec libx264;
|
vcodec libx264;
|
||||||
vbitrate 300;
|
vbitrate 300;
|
||||||
|
@ -77,7 +76,7 @@ vhost dev {
|
||||||
hls_path ./objs/nginx/html;
|
hls_path ./objs/nginx/html;
|
||||||
hls_fragment 5;
|
hls_fragment 5;
|
||||||
hls_window 30;
|
hls_window 30;
|
||||||
forward dev:19350;
|
#forward dev:19350;
|
||||||
transcode {
|
transcode {
|
||||||
enabled on;
|
enabled on;
|
||||||
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
||||||
|
@ -101,7 +100,7 @@ vhost dev {
|
||||||
achannels 2;
|
achannels 2;
|
||||||
aparams {
|
aparams {
|
||||||
}
|
}
|
||||||
output rtmp://[vhost]:[port]/[app]/[stream]_dev;
|
output rtmp://127.0.0.1:[port]/[app]/[stream]_dev;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -143,7 +142,7 @@ vhost drawtext.transcode.vhost.com {
|
||||||
engine drawtext{
|
engine drawtext{
|
||||||
enabled on;
|
enabled on;
|
||||||
vfilter {
|
vfilter {
|
||||||
vf 'drawtext=text=SimpleRtmpServer(SRS):x=10:y=10:fontcolor=#EEEEEE:fontfile=./doc/FreeSerifBold.ttf';
|
vf 'drawtext=text=SimpleRtmpServer(SRS):x=10:y=10:fontcolor=#cccccc:fontfile=./doc/FreeSerifBold.ttf';
|
||||||
}
|
}
|
||||||
vcodec libx264;
|
vcodec libx264;
|
||||||
vbitrate 300;
|
vbitrate 300;
|
||||||
|
@ -421,6 +420,14 @@ vhost forward.vhost.com {
|
||||||
# format: {ip}:{port} {ip_N}:{port_N}
|
# format: {ip}:{port} {ip_N}:{port_N}
|
||||||
forward 127.0.0.1:1936 127.0.0.1:1937;
|
forward 127.0.0.1:1936 127.0.0.1:1937;
|
||||||
}
|
}
|
||||||
|
# the vhost which forward publish streams to other vhosts.
|
||||||
|
vhost forward1.vhost.com {
|
||||||
|
# forward all publish stream to the specified server.
|
||||||
|
# this used to split/forward the current stream for cluster active-standby,
|
||||||
|
# active-active for cdn to build high available fault tolerance system.
|
||||||
|
# format: {ip}:{port} {ip_N}:{port_N}
|
||||||
|
forward forward.vhost.com:1936 forward.vhost.com:1937;
|
||||||
|
}
|
||||||
# the vhost disabled.
|
# the vhost disabled.
|
||||||
vhost removed.vhost.com {
|
vhost removed.vhost.com {
|
||||||
# whether the vhost is enabled.
|
# whether the vhost is enabled.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue