Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2013-12-15 12:44:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aaba290c1d047f90db8825dbab14ad4d13564795
aaba290c
1 parent
b90b6495
add reload readme.
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
22 行增加
和
8 行删除
README.md
trunk/conf/srs.conf
trunk/configure
README.md
查看文件 @
aaba290
...
...
@@ -19,13 +19,19 @@ cd simple-rtmp-server-*.*/trunk
./configure --with-ssl --with-hls --with-ffmpeg --with-http
make
</pre>
or get the latest code:
<br/>
<pre>
git clone https://github.com/winlinvip/simple-rtmp-server
cd simple-rtmp-server/trunk
./configure --with-ssl --with-hls --with-ffmpeg --with-http
</pre>
step 2: start srs
<br/>
<pre>
./objs/s
imple_rtmp_server
-c conf/srs.conf
./objs/s
rs
-c conf/srs.conf
</pre>
step 3(optinal): start srs listen at 19350 to forward to
<br/>
<pre>
./objs/s
imple_rtmp_server
-c conf/srs.19350.conf
./objs/s
rs
-c conf/srs.19350.conf
</pre>
step 4(optional): start nginx for HLS
<br/>
<pre>
...
...
@@ -82,6 +88,14 @@ rtmp url: rtmp://demo:19350/live/livestream_sd
m3u8 url: http://demo:80/forward/live/livestream_sd.m3u8
for android: http://demo:80/forward/live/livestream_sd.html
</pre>
step 11: modify the config and reload it (all features support reload)
<br/>
<pre>
killall -1 srs
</pre>
or use specified signal name to reload:
<br/>
<pre>
killall -s SIGHUP srs
</pre>
### Architecture
System Architecture:
...
...
trunk/conf/srs.conf
查看文件 @
aaba290
...
...
@@ -83,7 +83,7 @@ vhost __defaultVhost__ {
vhost
dev
{
enabled
on
;
gop_cache
on
;
forward
127
.
0
.
0
.
1
:
19350
;
#
forward 127.0.0.1:19350;
hls
{
hls
off
;
hls_path
./
objs
/
nginx
/
html
;
...
...
trunk/configure
查看文件 @
aaba290
...
...
@@ -57,11 +57,11 @@ help:
@echo " server build the srs(simple rtmp server) over st(state-threads)"
clean:
(rm -f Makefile; cd ${SRS_OBJS}; rm -rf Makefile *.hpp src st_*_load)
(rm -f Makefile; cd ${SRS_OBJS}; rm -rf
srs
Makefile *.hpp src st_*_load)
server: _prepare_dir
@echo "build the srs(simple rtmp server) over st(state-threads)"
\$(MAKE) -f ${SRS_OBJS}/${SRS_MAKEFILE} s
imple_rtmp_server
\$(MAKE) -f ${SRS_OBJS}/${SRS_MAKEFILE} s
rs
# the ./configure will generate it.
_prepare_dir:
...
...
@@ -87,7 +87,7 @@ GCC = g++
LINK = \$(GCC)
AR = ar
.PHONY: default s
imple_rtmp_server
.PHONY: default s
rs
default:
...
...
@@ -142,7 +142,7 @@ if [ $SRS_SSL = YES ]; then
else
LINK_OPTIONS
=
"-ldl"
fi
BUILD_KEY
=
"s
imple_rtmp_server"
APP_MAIN
=
"srs_main_server"
APP_NAME
=
"simple_rtmp_server
"
SO_PATH
=
""
. auto/apps.sh
BUILD_KEY
=
"s
rs"
APP_MAIN
=
"srs_main_server"
APP_NAME
=
"srs
"
SO_PATH
=
""
. auto/apps.sh
echo
'configure ok! '
...
...
@@ -187,4 +187,4 @@ fi
if
[
$SRS_HTTP
=
YES
]
;
then
echo
-e
"
\"
python ./research/api-server/server.py 8085
\"
to start the api-server"
fi
echo
"
\"
./objs/s
imple_rtmp_server
-c conf/srs.conf
\"
to start the srs live server"
echo
"
\"
./objs/s
rs
-c conf/srs.conf
\"
to start the srs live server"
...
...
请
注册
或
登录
后发表评论