diff --git a/README.md b/README.md index 8c6f3290e..8e5c44c16 100755 --- a/README.md +++ b/README.md @@ -45,18 +45,23 @@ sudo ./objs/nginx/sbin/nginx
python ./research/api-server/server.py 8085-step 6: publish live stream
-FMS URL: rtmp://127.0.0.1/live +FMS URL: rtmp://127.0.0.1/live?vhost=demo.srs.com Stream: livestream -For example, use ffmpeg to publish: +FFMPEG 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: ++step 7: publish players live stream
+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-step 7: add server ip to client hosts as demo.
# 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-step 8: play live stream.
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-step 9(optinal): play live stream auto transcoded
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-step 10(optinal): play live stream auto forwarded, the hls dir change to /forward
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-step 11(optinal): modify the config and reload it (all features support reload)
killall -1 srs