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-22 18:48:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aadff96e14656852a9b0e87914c5aa7458c75a80
aadff96e
1 parent
b5adb8c9
update readme
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
14 行增加
和
9 行删除
README.md
README.md
查看文件 @
aadff96
...
...
@@ -45,18 +45,23 @@ sudo ./objs/nginx/sbin/nginx
<pre>
python ./research/api-server/server.py 8085
</pre>
<strong>
step 6:
</strong>
publish live stream
<br/>
<strong>
step 6:
</strong>
publish
demo
live stream
<br/>
<pre>
FMS URL: rtmp://127.0.0.1/live
FMS URL: rtmp://127.0.0.1/live
?vhost=demo.srs.com
Stream: livestream
F
or example, use ffmpeg to publish
:
F
FMPEG to publish the default demo stream
:
for((;;)); do
\
./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv
\
-vcodec copy -acodec copy
\
-f flv -y rtmp://127.0.0.1/live?vhost=demo.srs.com/livestream;
\
sleep 1;
\
done
publish the demo stream for players:
</pre>
<strong>
step 7:
</strong>
publish players live stream
<br/>
<pre>
FMS URL: rtmp://127.0.0.1/live?vhost=players
Stream: livestream
FFMPEG to publish the players demo stream:
for((;;)); do
\
./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv
\
-vcodec copy -acodec copy
\
...
...
@@ -64,7 +69,7 @@ publish the demo stream for players:
sleep 1;
\
done
</pre>
<strong>
step
7
:
</strong>
add server ip to client hosts as demo.
<br/>
<strong>
step
8
:
</strong>
add server ip to client hosts as demo.
<br/>
<pre>
# edit the folowing file:
# linux: /etc/hosts
...
...
@@ -72,14 +77,14 @@ publish the demo stream for players:
# where server ip is 192.168.2.111
192.
168.2.111 demo.srs.com
</pre>
<strong>
step
8
:
</strong>
play live stream.
<br/>
<strong>
step
9
:
</strong>
play live stream.
<br/>
<pre>
players: http://demo.srs.com/players
rtmp url: rtmp://demo.srs.com/live/livestream
m3u8 url: http://demo.srs.com/live/livestream.m3u8
for android: http://demo.srs.com/live/livestream.html
</pre>
<strong>
step
9
(optinal):
</strong>
play live stream auto transcoded
<br/>
<strong>
step
10
(optinal):
</strong>
play live stream auto transcoded
<br/>
<pre>
rtmp url: rtmp://demo.srs.com/live/livestream_ld
m3u8 url: http://demo.srs.com/live/livestream_ld.m3u8
...
...
@@ -88,7 +93,7 @@ rtmp url: rtmp://demo.srs.com/live/livestream_sd
m3u8 url: http://demo.srs.com/live/livestream_sd.m3u8
for android: http://demo.srs.com/live/livestream_sd.html
</pre>
<strong>
step 1
0
(optinal):
</strong>
play live stream auto forwarded, the hls dir change to /forward
<br/>
<strong>
step 1
1
(optinal):
</strong>
play live stream auto forwarded, the hls dir change to /forward
<br/>
<pre>
rtmp url: rtmp://demo.srs.com:19350/live/livestream
m3u8 url: http://demo.srs.com/forward/live/livestream.m3u8
...
...
@@ -100,7 +105,7 @@ rtmp url: rtmp://demo.srs.com:19350/live/livestream_sd
m3u8 url: http://demo.srs.com/forward/live/livestream_sd.m3u8
for android: http://demo.srs.com/forward/live/livestream_sd.html
</pre>
<strong>
step 1
1
(optinal):
</strong>
modify the config and reload it (all features support reload)
<br/>
<strong>
step 1
2
(optinal):
</strong>
modify the config and reload it (all features support reload)
<br/>
<pre>
killall -1 srs
</pre>
...
...
请
注册
或
登录
后发表评论