SRS-Stack
SRS Stack is a video solution that is lightweight, open-source, and based on Go, Reactjs, SRS, FFmpeg, WebRTC, etc.
Usage
Run srs-stack in one docker:
docker run --rm -p 2022:2022 -p 2443:2443 -p 1935:1935/tcp -p 1985:1985/tcp \
-p 8080:8080/tcp -p 8000:8000/udp -p 10080:10080/udp --name srs-stack \
-v $HOME/db:/data ossrs/srs-stack:5
Note: Please use
-e REACT_APP_LOCALE=zh
andregistry.cn-hangzhou.aliyuncs.com/ossrs/srs-stack:1
in China.
Note: All data will be saved in
$HOME/db
directory, please change it to your directory.
Then open http://localhost:2022 in browser.
You have the option to modify the volumes for srs-stack and direct them to different directories.
/data
The global data directory..well-known
The directory for Let's Encrypt ACME challenge.config
The .env for password, srs/redis/nginx/prometheus config, and SSL files.dvr
The dvr storage directory, save dvr files.lego
The LEGO Let's Encrypt ACME challenge directory.record
The record storage directory, save record files.redis
The redis data directory, the publish secret and record configuration.signals
The signals storage directory, save signal files.upload
The upload storage directory, save upload files.vlive
The storage directory for virtual live, save video files.vod
The storage directory for VoD, save video files.
You can use environment variables to modify the settings.
MGMT_PASSWORD
: The mgmt administrator password.REACT_APP_LOCALE
: The i18n config for ui,en
orzh
, default toen
.
Note: The
MGMT_PASSWORD
is also saved in/data/config/.env
, you can modify it by yourself.
To access additional environment variables, please refer to the Environments section.
FAQ
Tutorials
- Getting Started.
- Live Streaming.
- Realtime SRT Streaming.
- DVR to Cloud Storage or VoD.
- Support WordPress Plugin or here.
- Support Typecho Plugin.
- Support aaPanel to install on any linux.
- Support DVR to local disk.
- Support Virtual Live Streaming.
- Automatical HTTPS.
- Dashboard by Prometheus.
Other more use scenarios is on the way, please read this post.
Features
The features that we're developing:
- A mgmt support authentication and automatic updates.
- Run SRS in docker, query status by docker and SRS API.
- Support publish by RTMP/WebRTC, play by RTMP/HTTP-FLV/HLS/WebRTC.
- SRS container use docker logs
json-file
and rotate for logging. - Support high-resolution and realtime(200~500ms) live streaming by SRT.
- Run SRS hooks in docker, to callback by SRS server.
- Support publish by SRT, play by RTMP/HTTP-FLV/HLS/WebRTC/SRT.
- Support DVR to tencent cloud storage, see #1193.
- Change redis port and use randomly password.
- Support integrity with tencent cloud VoD.
- Forward stream to multiple platforms, see #2676.
- Support WordPress Plugin or here.
- Support Typecho Plugin.
- Support aaPanel to install on any linux.
- Support DVR to local disk.
- Support upgrade to latest version manually.
- Support HTTPS by let's encrypt with LEGO.
- Support GB28181 by SRS 5.0 container.
- Support live streaming transcoding by FFmpeg, see #2869.
- Support virtual live streaming, covert file or other resource to live.
- Support WebRTC face to face chat, see #2857.
- Support WebRTC video chat room, see #2924.
- Support a set of tools for developer, see #2891.
- Collect logs of mgmt and containers together.
- Stop, restart and upgrade containers.
- Support logrotate to manage the logs.
- Enhance prometheus API with authentication.
- Integrate with prometheus and node-exporter.
License
SRS Stack is an open-source project, licensed under the AGPL-3.0-or-later license.
Developer
For development, please refer to the Environments about the API and architecture.
2022.11