Total Pageviews

Thursday, 19 December 2019

SRS


SRS/3.0,OuXuli,是一个简单的流媒体直播集群,简单的快乐。
SRS(Simple RTMP Server) is a simple live streaming cluster, a simple joy.
Remark: Although SRS is licenced under MIT, but there are some depended libraries which are distributed using their own licenses, please read License Mixing.

Usage

Step 1: Get SRS.
git clone https://github.com/ossrs/srs &&
cd srs/trunk
Note: Repository too large? Please clone from these mirrors instead.
Step 2: Build SRS.
./configure && make
Remark: Recommend Centos6 64bits, please read wiki(CN,EN).
Note: You can also build SRS in docker, please read docker.
Step 3: Run SRS
./objs/srs -c conf/srs.conf
Whatever, you can also directly run SRS in docker:
docker run -p 1935:1935 -p 1985:1985 -p 8080:8080 ossrs/srs:3
From here, strongly recommend to read bellow wikis:
  • Usage: How to delivery RTMP?(CNEN)
  • Usage: How to delivery RTMP Edge Cluster?(CNEN)
  • Usage: How to create a RTMP Origin Cluster?(CNEN)
  • Usage: How to delivery HTTP FLV Live Streaming?(CNEN)
  • Usage: How to delivery HTTP FLV Live Streaming Cluster?(CNEN)
  • Usage: How to delivery HLS?(CNEN)
  • Usage: How to delivery HLS for other codec?(CNEN)
  • Usage: How to transode RTMP stream by FFMPEG?(CNEN)
  • Usage: How to forward stream to other servers?(CNEN)
  • Usage: How to deploy in low lantency mode?(CNEN)
  • Usage: How to ingest file/stream/device to RTMP?(CNEN)
  • Usage: How to delivery HLS by SRS HTTP server?(CNEN)
  • Usage: How to publish h.264 raw stream as RTMP? (CNEN)
  • Usage: How to improve edge performance by multiple CPUs? (CNEN)
  • Usage: Why choose SRS? About the milestone and product plan? (CNEN)
  • Usage: How to file bug or chat with us? (CNEN)

Wiki

Please select according to languages:
For previous versions, please read:

Features

  •  Using coroutine by ST, it's really simple and stupid enough.
  •  Support cluster which consists of origin (CN,EN) and edge(CNEN) server and uses RTMP as default transport protocol.
  •  Origin server supports remuxing RTMP to HTTP-FLV(CNEN) and HLS(CNEN).
  •  Edge server supports remuxing RTMP to HTTP-FLV(CNEN). As for HLS(CNEN) edge server, recomment to use HTTP edge server, such as NGINX.
  •  Support HLS with audio-only(CNEN), which need to build the timestamp from AAC samples, so we enhanced it please read #547.
  •  Support HLS with mp3(h.264+mp3) audio codec, please read bug #301.
  •  Support remuxing RTMP to http FLV/MP3/AAC/TS live streaming, please read wiki(CNEN).
  •  Support ingesting(CNEN) other protocols to SRS by FFMPEG.
  •  Support RTMP long time(>4.6hours) publishing/playing, with the timestamp corrected.
  •  Support publishing h264 raw stream(CNEN) by srs-librtmp(CNEN).
  •  Support publishing aac adts raw stream(CNEN) by srs-librtmp(CNEN).
  •  Support native HTTP server(CNEN) for http api and http live streaming.
  •  Support HTTP CORS for js in http api and http live streaming.
  •  Support HTTP API(CNEN) for system management.
  •  Support HTTP RAW API, please read #459#470#319.
  •  Support HTTP callback(CNEN) for authentication and integration.
  •  Support RTMP client library: srs-librtmp(CNEN)
  •  Support Adobe FMS/AMS token traverse(CNEN) authentication.
  •  Support DVR(CNEN) to record live streaming to FLV file.
  •  Support DVR in MP4 format, read #738.
  •  Support DVR control module like NGINX-RTMP, please read #459.
  •  Support EXEC like NGINX-RTMP, please read bug #367.
  •  Support security strategy including allow/deny publish/play IP(CNEN).
  •  Support low latency(0.1s+) transport model, please read bug #257.
  •  Support gop-cache(CNEN) for player fast startup.
  •  Support Vhost(CNEN) and __defaultVhost__.
  •  Support reloading(CNEN) to apply changes of config.
  •  Support bandwidth testing(CNEN) and flash client example.
  •  Support listening at multiple ports.
  •  Support forwarding(CNEN) from master to slave server.
  •  Support transcoding(CNEN) live streaming by FFMPEG.
  •  All wikis are writen in Chinese and English.
  •  Enhanced json, replace NXJSON(LGPL) with json-parser(BSD), read #904.
  •  Support valgrind and latest ARM by patching ST, read ST#1 and ST#2.
  •  Support tracable and session-based log(CNEN).
  •  High concurrency and performance(CNEN), 6000+ connections(200kbps), CPU 82%, 203MB.
  •  Enhanced complex error code with description and stack, read #913.
  •  Enhanced RTMP url which supports vhost in stream, read #1059.
  •  Support origin cluster, please read #464RTMP 302.
  •  Support listen at IPv4 and IPv6, read #460.
  •  Support SO_REUSEPORT, to improve edge server performance, read #775.
  •  [Deprecated] Support Adobe HDS(f4m), please read wiki(CNEN).
  •  [Experimental] Support MPEG-DASH, the future live streaming protocol, read #299.
  •  [Experimental] Support pushing MPEG-TS over UDP, please read bug #250.
  •  [Experimental] Support pushing RTSP, please read bug #133.
  •  [Experimental] Support pushing FLV over HTTP POST, please read [wiki](CNEN).
  •  [Experimental] Support multiple processes by dolphin or oryx.
  •  [Experimental] Support a simple mgmt console, please read srs-ngb.
  •  Utest cover almost all kernel code.
  •  Enhanced forwarding with vhost and variables.
  •  Support source cleanup for idle streams.
  •  Support H.265 by pushing H.265 over RTMP, deliverying in HLS, read #465.
  •  Support HLS+, the HLS edge server, please read #466 and #468.
  •  Support UDP protocol such as QUIC or KCP in cluster.
  •  Support H.264+Opus codec for WebRTC.
  •  Support publishing stream by WebRTC.
  •  Support playing stream by WebRTC.
Remark: About the milestone and product plan, please read (CNEN) wiki.

from https://github.com/ossrs/srs