srs README

The project's README from github.com/ossrs/srs. As one markdown file: README.md.

SRS(Simple Realtime Server)

SRS/8.0 (Free) is a simple, high-performance, AI-driven real-time media server. It supports RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181 on Linux and macOS across x86_64, ARMv7, AArch64, Apple M1, RISC-V, LoongArch, and MIPS architectures. Supported codecs include H.264, H.265, AV1, VP9, AAC, Opus, and G.711. See the complete list of features.

SRS Overview

Note: For more details on the single-node architecture for SRS, please visit the following link.

SRS is licenced under MIT, and some third-party libraries are distributed under their licenses.

Usage

Please check the Getting Started guide in English or Chinese. We highly recommend using SRS with docker:

docker run --rm -it -p 1935:1935 -p 1985:1985 -p 8080:8080 \
    -p 8000:8000/udp -p 10080:10080/udp ossrs/srs:6

Tips: If you're in China, use this image registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6 for faster speed.

Open http://localhost:8080/ to verify, and then stream using the following FFmpeg command:

ffmpeg -re -i ./doc/source.flv -c copy -f flv -y rtmp://localhost/live/livestream

Alternatively, stream by OBS using the following configuration:

Play the following streams using media players:

If you'd like to use WebRTC, convert RTMP to WebRTC, or convert WebRTC to RTMP, please check out the wiki documentation in either English or Chinese.

To learn more about RTMP, HLS, HTTP-FLV, SRT, MPEG-DASH, WebRTC protocols, clustering, HTTP API, DVR, and transcoding, please check the documents in English or Chinese.

AI Agent

I recommend to use AI to understand and maintain your SRS, please follow the wiki AI Agent for details.

Contributing

The maintainers, and contributors are listed here. The maintainers who made significant contributions and maintained parts of SRS are listed below, ranked by the number of commits:

A huge THANK YOU goes out to:

We're really thankful to everyone in the community for helping us find bugs and improve the project. To stay in touch and keep helping our community, please check out this guide.

Of course, financial support is very important to us, so we can build the website and use AI tools to maintain the community. Please visit OpenCollective to become a backer or sponsor.

LICENSE

SRS is licenced under MIT, and some third-party libraries are distributed under their licenses.

Releases

Features

Please read FEATURES.

Changelog

Please read CHANGELOG.

Performance

Please read PERFORMANCE.

Architecture

Please read ARCHITECTURE.

Ports

Please read PORTS.

APIs

Please read APIS.

Mirrors

Please read MIRRORS.

Dockers

Please read DOCKERS.

srs (ossrs/srs)

Searching Database…

29.3K ·GitHub
这是什么东西?SRS(Simple Realtime Server)是一个简单、高性能、由 AI 驱动的实时流媒体服务器,用于直播:支持 RTMP、WebRTC、HLS、HTTP-FLV、SRT、MPEG-DASH 和 GB28181,编解码器涵盖 H.264 到 AV1、VP9、AAC、Opus 以及 G.711。
它是托管服务,还是我自己搭建运行的?它是自托管的,不是云服务:SRS 是一个开源服务器,由你自己的机器来运行(推荐用 Docker),你的直播流也只经过你自己的服务器。
我该怎么把它跑起来?运行 Docker 镜像 ossrs/srs:6(在国内建议拉取 registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6,速度更快),然后用 FFmpeg 或 OBS 推一路测试流到 rtmp://localhost/live,流密钥(stream key)为 livestream。
要真正推流和观看,我还需要什么?服务器本身只需要 Docker。推流可以用任意 RTMP 来源,比如 FFmpeg 或 OBS;观看可以用 VLC,或者基于 HTML5 的 srs-player 网页,不需要装任何插件。
它能在 Windows 上运行吗,还是只支持 Linux?没有 Windows 版本:README 列出的平台是 Linux 和 macOS,CPU 架构涵盖 x86_64、ARMv7、AArch64(包括 Apple M1)、RISC-V、LoongArch 和 MIPS。
直播流媒体服务器很多都是 GPL 的——SRS 的代码我能怎么用?SRS 采用 MIT 协议,所以商用、修改和自托管都不受限制。需要注意的是:部分随项目打包的第三方库按它们自己的许可证分发。
除了提供直播流,它还能做什么?它可以在 RTMP 和 WebRTC 之间互相转换,文档还介绍了用于横向扩展的集群、用于控制的 HTTP API、DVR 录制和转码。
所谓 AI 驱动,到底是什么意思?SRS 发布了一份 AI Agent 的 wiki,指导你如何借助 AI 助手来理解并维护你的 SRS 部署——README 也推荐按这种方式工作。
这是个成熟的项目,还是周末搞着玩的小实验?很成熟:项目创建于 2013 年 10 月,在 GitHub 上有约 2.9 万颗星,而且一直在稳定发布新版本——2026 年 8 月就同时打出了 v6.0-r1 和 v7.0 开发线的标签。
Creator
ossrs
Size
259.2 MB
Stars
29.3K
Age
11y
Commits · 90 Days