winlin

update readme

正在显示 1 个修改的文件 包含 14 行增加9 行删除
@@ -45,18 +45,23 @@ sudo ./objs/nginx/sbin/nginx @@ -45,18 +45,23 @@ sudo ./objs/nginx/sbin/nginx
45 <pre> 45 <pre>
46 python ./research/api-server/server.py 8085 46 python ./research/api-server/server.py 8085
47 </pre> 47 </pre>
48 -<strong>step 6:</strong> publish live stream <br/> 48 +<strong>step 6:</strong> publish demo live stream <br/>
49 <pre> 49 <pre>
50 -FMS URL: rtmp://127.0.0.1/live 50 +FMS URL: rtmp://127.0.0.1/live?vhost=demo.srs.com
51 Stream: livestream 51 Stream: livestream
52 -For example, use ffmpeg to publish: 52 +FFMPEG to publish the default demo stream:
53 for((;;)); do \ 53 for((;;)); do \
54 ./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv \ 54 ./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv \
55 -vcodec copy -acodec copy \ 55 -vcodec copy -acodec copy \
56 -f flv -y rtmp://127.0.0.1/live?vhost=demo.srs.com/livestream; \ 56 -f flv -y rtmp://127.0.0.1/live?vhost=demo.srs.com/livestream; \
57 sleep 1; \ 57 sleep 1; \
58 done 58 done
59 -publish the demo stream for players: 59 +</pre>
  60 +<strong>step 7:</strong> publish players live stream <br/>
  61 +<pre>
  62 +FMS URL: rtmp://127.0.0.1/live?vhost=players
  63 +Stream: livestream
  64 +FFMPEG to publish the players demo stream:
60 for((;;)); do \ 65 for((;;)); do \
61 ./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv \ 66 ./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv \
62 -vcodec copy -acodec copy \ 67 -vcodec copy -acodec copy \
@@ -64,7 +69,7 @@ publish the demo stream for players: @@ -64,7 +69,7 @@ publish the demo stream for players:
64 sleep 1; \ 69 sleep 1; \
65 done 70 done
66 </pre> 71 </pre>
67 -<strong>step 7:</strong> add server ip to client hosts as demo. <br/> 72 +<strong>step 8:</strong> add server ip to client hosts as demo. <br/>
68 <pre> 73 <pre>
69 # edit the folowing file: 74 # edit the folowing file:
70 # linux: /etc/hosts 75 # linux: /etc/hosts
@@ -72,14 +77,14 @@ publish the demo stream for players: @@ -72,14 +77,14 @@ publish the demo stream for players:
72 # where server ip is 192.168.2.111 77 # where server ip is 192.168.2.111
73 192.168.2.111 demo.srs.com 78 192.168.2.111 demo.srs.com
74 </pre> 79 </pre>
75 -<strong>step 8:</strong> play live stream. <br/> 80 +<strong>step 9:</strong> play live stream. <br/>
76 <pre> 81 <pre>
77 players: http://demo.srs.com/players 82 players: http://demo.srs.com/players
78 rtmp url: rtmp://demo.srs.com/live/livestream 83 rtmp url: rtmp://demo.srs.com/live/livestream
79 m3u8 url: http://demo.srs.com/live/livestream.m3u8 84 m3u8 url: http://demo.srs.com/live/livestream.m3u8
80 for android: http://demo.srs.com/live/livestream.html 85 for android: http://demo.srs.com/live/livestream.html
81 </pre> 86 </pre>
82 -<strong>step 9(optinal):</strong> play live stream auto transcoded<br/> 87 +<strong>step 10(optinal):</strong> play live stream auto transcoded<br/>
83 <pre> 88 <pre>
84 rtmp url: rtmp://demo.srs.com/live/livestream_ld 89 rtmp url: rtmp://demo.srs.com/live/livestream_ld
85 m3u8 url: http://demo.srs.com/live/livestream_ld.m3u8 90 m3u8 url: http://demo.srs.com/live/livestream_ld.m3u8
@@ -88,7 +93,7 @@ rtmp url: rtmp://demo.srs.com/live/livestream_sd @@ -88,7 +93,7 @@ rtmp url: rtmp://demo.srs.com/live/livestream_sd
88 m3u8 url: http://demo.srs.com/live/livestream_sd.m3u8 93 m3u8 url: http://demo.srs.com/live/livestream_sd.m3u8
89 for android: http://demo.srs.com/live/livestream_sd.html 94 for android: http://demo.srs.com/live/livestream_sd.html
90 </pre> 95 </pre>
91 -<strong>step 10(optinal):</strong> play live stream auto forwarded, the hls dir change to /forward<br/> 96 +<strong>step 11(optinal):</strong> play live stream auto forwarded, the hls dir change to /forward<br/>
92 <pre> 97 <pre>
93 rtmp url: rtmp://demo.srs.com:19350/live/livestream 98 rtmp url: rtmp://demo.srs.com:19350/live/livestream
94 m3u8 url: http://demo.srs.com/forward/live/livestream.m3u8 99 m3u8 url: http://demo.srs.com/forward/live/livestream.m3u8
@@ -100,7 +105,7 @@ rtmp url: rtmp://demo.srs.com:19350/live/livestream_sd @@ -100,7 +105,7 @@ rtmp url: rtmp://demo.srs.com:19350/live/livestream_sd
100 m3u8 url: http://demo.srs.com/forward/live/livestream_sd.m3u8 105 m3u8 url: http://demo.srs.com/forward/live/livestream_sd.m3u8
101 for android: http://demo.srs.com/forward/live/livestream_sd.html 106 for android: http://demo.srs.com/forward/live/livestream_sd.html
102 </pre> 107 </pre>
103 -<strong>step 11(optinal):</strong> modify the config and reload it (all features support reload)<br/> 108 +<strong>step 12(optinal):</strong> modify the config and reload it (all features support reload)<br/>
104 <pre> 109 <pre>
105 killall -1 srs 110 killall -1 srs
106 </pre> 111 </pre>