Skip to content

LicenseMixing

winlin edited this page May 14, 2020 · 67 revisions

HOME > License

SRS used some third party libraries, which are distributed using their own licenses. This wiki describes the licenses about SRS and related libraries.

I am not a lawyer and this is not legal advice!

SRS

SRS uses MIT license that is very liberal.

State Threads

The State Threads library is a derivative of the Netscape Portable Runtime library (NSPR) and therefore is distributed under the Mozilla Public License (MPL) version 1.1 or the GNU General Public License (GPL) version 2 or later.

You can choose which of the two licenses you want or you can continue the dual license. Commercial interests probably will choose the MPL, and free software advocates likely will prefer the GPL.

For more information, please read LICENSE of ST.

ST(State Threads) is forked from SourceForge and SRS uses the patched ST. ST uses GPLv2 or MPL. Well, MPL is nice for commercial products, please read #907.

Remark: For MPL license, please use ./configure --use-shared-st to link ST by shared library.

OpenSSL

OpenSSL(May be used for SSL/TLS support) Uses an Original BSD-style license with an announcement clause that makes it "incompatible" with GPL. You are not allowed to ship binaries that link with OpenSSL that includes GPL code (unless that specific GPL code includes an exception for OpenSSL - a habit that is growing more and more common). If OpenSSL's licensing is a problem for you, consider using another TLS library.

Remark: SRS can be built with system ssl library libssl.so and libcrypto.so by ./configure --use-sys-ssl.

http-parser

http-parser is part of NGINX, that uses 2-clause BSD-like license.

JSON

SRS2

NXJSON uses LGPL LICENSE.

SRS2 depends on NXJSON. SRS3 has replaced NXJSON with json-parser which uses BSD license.

SRS3+

The JSON library json-parser uses BSD 2-clause "Simplified" License.

SRS3+ uses json-parser, read #904.

SRT

SRS4

libsrt use MPL 2.0, please read #1147.

For SRS to use shared library libsrt.so, please use ./configure --with-srt --use-shared-srt.

FFmpeg

SRS4

FFmpeg use LGPL, we should support ./configure --shared-ffmpeg=on to build and link in so.

Utility

SRS forks FFMPEG process to transcode or ingest, however user can use other encoders.

SRS2

SRS2 uses the following functions, which have license problems and have been replaced in SRS3+:

  1. ff_hex_to_data: For RTSP to parse the hex string. SRS3 replaced by golang hex at 41c6e833 and #917.
  2. srs_av_base64_decode: For RTSP to parse the base64 by FFMPEG. SRS3 replaced by golang base64 at 84f81983 and #917.
  3. srs_crc32_mpegts: For TS to build the crc32 checksum by FFMPEG. SRS3 replaced by pycrc at 0a63448 and #917.
  4. srs_crc32_ieee: For kafka to build the crc32 checksum. SRS3 replaced by pycrc code at 0a63448 and #917.

Please read #917.

Welcome to SRS wiki!

SRS 5.0 wiki

Please select your language:

SRS 4.0 wiki

Please select your language:

SRS 3.0 wiki

Please select your language:

SRS 2.0 wiki

Please select your language:

SRS 1.0 wiki

Please select your language:

Clone this wiki locally