From 1b6192e1b2422d13bc9cb24f843f0913ef64ebe9 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 13 Aug 2021 14:50:11 +0800 Subject: [PATCH 1/4] Update README --- README.md | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index d8f6298ff..990f5dc37 100755 --- a/README.md +++ b/README.md @@ -17,32 +17,22 @@ SRS is licenced under [MIT][LICENSE], but some depended libraries are distribute ## Usage -Run SRS by [docker][docker-srs4], images is [here](https://hub.docker.com/r/ossrs/srs/tags) or [there](https://cr.console.aliyun.com/repository/cn-hangzhou/ossrs/srs/images), -please set the CANDIDATE ([CN][v4_CN_WebRTC#config-candidate],[EN][v4_EN_WebRTC#config-candidate]) if WebRTC enabled: - -```bash -docker run --rm -it -p 1935:1935 -p 1985:1985 -p 8080:8080 \ - --env CANDIDATE=$(ifconfig en0 inet| grep 'inet '|awk '{print $2}') -p 8000:8000/udp \ - ossrs/srs:4 ./objs/srs -c conf/srs.conf -``` - - -Or build SRS from source(or [mirrors](#mirrors)), by CentOS7(or Linux([CN][v4_CN_Build],[EN][v4_EN_Build])): +Build SRS from source, please read **Wiki: Gettting Started( [EN](https://github.com/ossrs/srs/wiki/v4_EN_Home#getting-started) / [CN](https://github.com/ossrs/srs/wiki/v4_CN_Home#getting-started) )**: ``` git clone -b 4.0release https://gitee.com/ossrs/srs.git && cd srs/trunk && ./configure && make && ./objs/srs -c conf/srs.conf ``` -Open [http://localhost:8080/](http://localhost:8080/) to check it, then publish -[stream](https://github.com/ossrs/srs/blob/3.0release/trunk/doc/source.flv) by FFmpeg. -It's also able to [publish by H5](http://localhost:8080/players/rtc_publisher.html?autostart=true) if WebRTC is enabled: +Open [http://localhost:8080/](http://localhost:8080/) to check it, then publish +by [FFmpeg](https://ffmpeg.org/download.html) or [OBS](https://obsproject.com/download) as: ```bash -docker run --rm -it --network=host ossrs/srs:encoder \ - ffmpeg -re -i ./doc/source.flv -c copy -f flv -y rtmp://localhost/live/livestream +ffmpeg -re -i ./doc/source.flv -c copy -f flv -y rtmp://localhost/live/livestream ``` +> Note: It's also able to [publish by H5](http://localhost:8080/players/rtc_publisher.html?autostart=true) if WebRTC is enabled. + Play the following streams by [players](https://ossrs.net): * RTMP (by [VLC](https://www.videolan.org/)): rtmp://localhost/live/livestream @@ -55,9 +45,8 @@ Play the following streams by [players](https://ossrs.net): From here, please read wikis: -* [SRS 4.0 English Wiki][v4_EN_Home], please read Wiki first. -* [SRS 4.0 中文Wiki][v4_CN_Home],不读Wiki一定扑街,不读文档请不要提Issue,不读文档请不要提问题,任何文档中明确说过的疑问都不会解答。 -* [学习路径](https://mp.weixin.qq.com/s/ngZX1wBSRJ8aYX-ZNTGxIg),如何快速学习和掌握SRS,分层次了解流媒体服务器的知识。 +* [Getting Started](https://github.com/ossrs/srs/wiki/v4_EN_Home#getting-started), please read Wiki first. +* [中文文档:起步](https://github.com/ossrs/srs/wiki/v4_EN_Home#getting-started),不读Wiki一定扑街,不读文档请不要提Issue,不读文档请不要提问题,任何文档中明确说过的疑问都不会解答。 Fast index for Wikis: From 5cd8989fd83ada09cfcc4313487d279f248d1ed4 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 13 Aug 2021 14:50:39 +0800 Subject: [PATCH 2/4] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 990f5dc37..b0f6618a7 100755 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Play the following streams by [players](https://ossrs.net): From here, please read wikis: * [Getting Started](https://github.com/ossrs/srs/wiki/v4_EN_Home#getting-started), please read Wiki first. -* [中文文档:起步](https://github.com/ossrs/srs/wiki/v4_EN_Home#getting-started),不读Wiki一定扑街,不读文档请不要提Issue,不读文档请不要提问题,任何文档中明确说过的疑问都不会解答。 +* [中文文档:起步](https://github.com/ossrs/srs/wiki/v4_CN_Home#getting-started),不读Wiki一定扑街,不读文档请不要提Issue,不读文档请不要提问题,任何文档中明确说过的疑问都不会解答。 Fast index for Wikis: From 9c0c35fa8745865416e4c171f3326de4b70dfec4 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 13 Aug 2021 14:52:49 +0800 Subject: [PATCH 3/4] Update README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b0f6618a7..b3a921b06 100755 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ From here, please read wikis: Fast index for Wikis: +* Overview? ([CN][v4_EN_Home], [EN][v4_CN_Home]) * How to deliver RTMP streaming?([CN][v4_CN_SampleRTMP], [EN][v4_EN_SampleRTMP]) * How to build RTMP Edge-Cluster?([CN][v4_CN_SampleRTMPCluster], [EN][v4_EN_SampleRTMPCluster]) * How to build RTMP Origin-Cluster?([CN][v4_CN_SampleOriginCluster], [EN][v4_EN_SampleOriginCluster]) From d8fe85606da1bcfa12584bf260876e1b742047f9 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 13 Aug 2021 14:53:22 +0800 Subject: [PATCH 4/4] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b3a921b06..6e119bac0 100755 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ From here, please read wikis: Fast index for Wikis: -* Overview? ([CN][v4_EN_Home], [EN][v4_CN_Home]) +* Overview? ([CN][v4_CN_Home], [EN][v4_EN_Home]) * How to deliver RTMP streaming?([CN][v4_CN_SampleRTMP], [EN][v4_EN_SampleRTMP]) * How to build RTMP Edge-Cluster?([CN][v4_CN_SampleRTMPCluster], [EN][v4_EN_SampleRTMPCluster]) * How to build RTMP Origin-Cluster?([CN][v4_CN_SampleOriginCluster], [EN][v4_EN_SampleOriginCluster])