winlin

simplify usage

正在显示 1 个修改的文件 包含 4 行增加131 行删除
@@ -25,150 +25,23 @@ answer newbie questions, and generally made SRS that much better: [AUTHORS.txt]( @@ -25,150 +25,23 @@ answer newbie questions, and generally made SRS that much better: [AUTHORS.txt](
25 ### Wiki 25 ### Wiki
26 [https://github.com/winlinvip/simple-rtmp-server/wiki](https://github.com/winlinvip/simple-rtmp-server/wiki) 26 [https://github.com/winlinvip/simple-rtmp-server/wiki](https://github.com/winlinvip/simple-rtmp-server/wiki)
27 27
28 -### Usage(RTMP) for RTMP only 28 +### Usage
29 29
30 -<strong>Requires: Centos6.x 64bits, others see [Build](https://github.com/winlinvip/simple-rtmp-server/wiki/Build)</strong><br/>  
31 -<strong>Step 0:</strong> get SRS <br/> 30 +<strong>Step 1:</strong> get SRS <br/>
32 <pre> 31 <pre>
33 git clone https://github.com/winlinvip/simple-rtmp-server && 32 git clone https://github.com/winlinvip/simple-rtmp-server &&
34 cd simple-rtmp-server/trunk 33 cd simple-rtmp-server/trunk
35 </pre> 34 </pre>
36 -<strong>Step 1:</strong> build SRS <br/> 35 +<strong>Step 2:</strong> build SRS <br/>
37 <pre> 36 <pre>
38 ./configure --with-ssl --without-hls --without-ffmpeg --without-http && make 37 ./configure --with-ssl --without-hls --without-ffmpeg --without-http && make
39 </pre> 38 </pre>
40 -<strong>Step 2:</strong> start SRS <br/> 39 +<strong>Step 3:</strong> start SRS <br/>
41 <pre> 40 <pre>
42 ./objs/srs -c conf/srs.conf 41 ./objs/srs -c conf/srs.conf
43 </pre> 42 </pre>
44 -<strong>Step 3:</strong> [Adobe FMLE](http://www.adobe.com/cn/products/flash-media-encoder.html) publish demo live stream <br/>  
45 -<pre>  
46 -FMS URL: rtmp://192.168.1.170/live  
47 -Stream: livestream  
48 -</pre>  
49 -<strong>Step 4:</strong> [VLC (2.1+)](http://www.videolan.org/vlc/) play live stream. <br/>  
50 -<pre>  
51 -rtmp url: rtmp://192.168.1.170/live/livestream  
52 -</pre>  
53 -  
54 -### Usage(simple) for all features  
55 43
56 <strong>Requires: Centos6.x 64bits, others see [Build](https://github.com/winlinvip/simple-rtmp-server/wiki/Build)</strong><br/> 44 <strong>Requires: Centos6.x 64bits, others see [Build](https://github.com/winlinvip/simple-rtmp-server/wiki/Build)</strong><br/>
57 -<strong>Step -1:</strong> get SRS<br/>  
58 -<pre>  
59 -git clone https://github.com/winlinvip/simple-rtmp-server &&  
60 -cd simple-rtmp-server/trunk  
61 -</pre>  
62 -<strong>Step 0:</strong> build SRS system.<br/>  
63 -<pre>  
64 -bash scripts/build.sh  
65 -</pre>  
66 -<strong>Step 1:</strong> start SRS all demo features.<br/>  
67 -<pre>  
68 -bash scripts/run.sh  
69 -</pre>  
70 -<strong>Step 2:</strong> SRS live show: <br/>  
71 -[http://your-server-ip](http://your-server-ip) <br/>  
72 -<strong>Step 3:</strong> stop SRS demo<br/>  
73 -<pre>  
74 -bash scripts/stop.sh  
75 -</pre>  
76 -  
77 -### Usage(detail) for all features  
78 -<strong>Requires: Centos6.x 64bits, others see [Build](https://github.com/winlinvip/simple-rtmp-server/wiki/Build)</strong><br/>  
79 -<strong>Step 0:</strong> get SRS <br/>  
80 -<pre>  
81 -git clone https://github.com/winlinvip/simple-rtmp-server &&  
82 -cd simple-rtmp-server/trunk  
83 -</pre>  
84 -<strong>Step 1:</strong> build SRS <br/>  
85 -<pre>  
86 -./configure --with-ssl --with-hls --with-ffmpeg --with-http && make  
87 -</pre>  
88 -<strong>Step 2:</strong> start SRS <br/>  
89 -<pre>  
90 -./objs/srs -c conf/srs.conf  
91 -</pre>  
92 -<strong>Step 3(optinal):</strong> start SRS listen at 19350 to forward to<br/>  
93 -<pre>  
94 -./objs/srs -c conf/srs.19350.conf  
95 -</pre>  
96 -<strong>Step 4(optinal):</strong> start nginx for HLS <br/>  
97 -<pre>  
98 -sudo ./objs/nginx/sbin/nginx  
99 -</pre>  
100 -<strong>Step 5(optinal):</strong> start http hooks for SRS callback <br/>  
101 -<pre>  
102 -python ./research/api-server/server.py 8085  
103 -</pre>  
104 -<strong>Step 6:</strong> publish demo live stream <br/>  
105 -<pre>  
106 -FMS URL: rtmp://127.0.0.1/live?vhost=demo.srs.com  
107 -Stream: livestream  
108 -FFMPEG to publish the default demo stream:  
109 - for((;;)); do \  
110 - ./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv \  
111 - -vcodec copy -acodec copy \  
112 - -f flv -y rtmp://127.0.0.1/live?vhost=demo.srs.com/livestream; \  
113 - sleep 1; \  
114 - done  
115 -</pre>  
116 -<strong>Step 7:</strong> publish players live stream <br/>  
117 -<pre>  
118 -FMS URL: rtmp://127.0.0.1/live?vhost=players  
119 -Stream: livestream  
120 -FFMPEG to publish the players demo stream:  
121 - for((;;)); do \  
122 - ./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv \  
123 - -vcodec copy -acodec copy \  
124 - -f flv -y rtmp://127.0.0.1/live?vhost=players/livestream; \  
125 - sleep 1; \  
126 - done  
127 -</pre>  
128 -<strong>Step 8:</strong> add server ip to client hosts as demo. <br/>  
129 -<pre>  
130 -# edit the folowing file:  
131 -# linux: /etc/hosts  
132 -# windows: C:\Windows\System32\drivers\etc\hosts  
133 -# where server ip is 192.168.2.111  
134 -192.168.2.111 demo.srs.com  
135 -</pre>  
136 -<strong>Step 9:</strong> play live stream. <br/>  
137 -<pre>  
138 -players: http://demo.srs.com/players  
139 -rtmp url: rtmp://demo.srs.com/live/livestream  
140 -m3u8 url: http://demo.srs.com/live/livestream.m3u8  
141 -for android: http://demo.srs.com/live/livestream.html  
142 -</pre>  
143 -<strong>Step 10(optinal):</strong> play live stream auto transcoded<br/>  
144 -<pre>  
145 -rtmp url: rtmp://demo.srs.com/live/livestream_ld  
146 -m3u8 url: http://demo.srs.com/live/livestream_ld.m3u8  
147 -for android: http://demo.srs.com/live/livestream_ld.html  
148 -rtmp url: rtmp://demo.srs.com/live/livestream_sd  
149 -m3u8 url: http://demo.srs.com/live/livestream_sd.m3u8  
150 -for android: http://demo.srs.com/live/livestream_sd.html  
151 -</pre>  
152 -<strong>Step 11(optinal):</strong> play live stream auto forwarded, the hls dir change to /forward<br/>  
153 -<pre>  
154 -rtmp url: rtmp://demo.srs.com:19350/live/livestream  
155 -m3u8 url: http://demo.srs.com/forward/live/livestream.m3u8  
156 -for android: http://demo.srs.com/forward/live/livestream.html  
157 -rtmp url: rtmp://demo.srs.com:19350/live/livestream_ld  
158 -m3u8 url: http://demo.srs.com/forward/live/livestream_ld.m3u8  
159 -for android: http://demo.srs.com/forward/live/livestream_ld.html  
160 -rtmp url: rtmp://demo.srs.com:19350/live/livestream_sd  
161 -m3u8 url: http://demo.srs.com/forward/live/livestream_sd.m3u8  
162 -for android: http://demo.srs.com/forward/live/livestream_sd.html  
163 -</pre>  
164 -<strong>Step 12(optinal):</strong> modify the config and reload it (all features support reload)<br/>  
165 -<pre>  
166 -killall -1 srs  
167 -</pre>  
168 -or use specified signal to reload:<br/>  
169 -<pre>  
170 -killall -s SIGHUP srs  
171 -</pre>  
172 45
173 ### Architecture 46 ### Architecture
174 System Architecture: 47 System Architecture: