GithubHelp home page GithubHelp logo

objectnf / srs-docker Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 11.0 331 KB

Docker image for SRS.

License: Apache License 2.0

Shell 18.32% Dockerfile 81.68%
srs srs-server docker-image rtmp http-flv oryx media-server livego mediasrv centos rtmp-server

srs-docker's Introduction

SRS 4.0 Docker Image

Branches:

release branch is the file for SRS version 4, based on ubuntu:latest.

develop branch is the file for SRS version 5, based on ubuntu:latest.

livego-win branch is an unofficial docker image of livego.

mediasrv branch is the file for ETS Mediasrv Media Server.

Introduction:

This repository includes a demo of Dockerfile to build a docker image contains SRS Media Server on Ubuntu.

If you want to use the image directly,you can push a ready-made image (See it on Docker Hub). Feel free to try it!

Feature:

Support RTMP, RTSP, HTTP-FLV, HTTP-AAC, HLS, HDS and many other streaming protocols.

It can also transcoding the live stream, and built-in HTTP Server can be used to deliver player sites.

You can build a RTMP or HTTP-FLV cluster easily as well.

Notice:

Some of the configurations are untested.Please take then at your own risk.

Pull command:

docker pull zhouweitong/srs-docker:latest

Docker command sample:

docker run -d \
        -p 443:443 \
        -p 554:554 \
        -p 1935:1935 \
        -p 1985:1985 \
        -p 8080:8080 \
        -p 8082:8082 \
        zhouweitong/srs-docker:latest

It automatically runs /bin/bash -c /root/start.sh and starts the SRS server.

Structure:

SRS Structure Mind Map

Customize settings:

Run the container in the interactive mode:docker run -it along with the parameters above.

Or: run a bash in the current running container:docker exec -it <CONTAIER> bash

Then you can do the following:

  • Stop the srs server
  • Modify the configuration file:vi /root/srs/trunk/conf/srs-modify.conf
  • Restart the srs server

Port Settings:

HTTPS Server port:443

RTSP main port:554

RTMP:1935

HTTP API:1985

HTTP Server:8080

WebSocket Server:8081

HTTP Server with CORS:8082

Link Details:

RTMP:rtmp://<ip>/<app>/<stream>

HLS:http://<ip>:8080/hls/<app>/<stream>.m3u8

HTTP Server:http://<ip>:8080/

HTTP with CORS server:http://<ip>:8082/

HTTPS Server:https://<ip>/

WebSocket Server:ws://<ip>:8081/

HTTP Flv:http://<ip>:8080/http/<app>/<stream>.flv

Admin Consle:http://<ip>:8080/srs-console/index.html

Other links and settings,please refer to the config file.

Volume setting:

/root/srs/trunk/objs/nginx is the folder for the html files.

srs-docker's People

Contributors

objnf-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

srs-docker's Issues

Port Mapping

第一,记得及时更新。试了一下,还是挺好用的。
第二,README的docker启动命令中的端口映射有问题(已自行百度解决),建议修改。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.