Giter Site home page Giter Site logo

srs-docker's Introduction

srs

A dockerized Simple RTMP Server. This is a much better solution than Wowza or Adobe Flash Media Server. It allows for sophisticated custom live streaming setups. Big thanks to winlin, author of srs, for making this possible.

Usage

docker pull ossrs/srs:1.0.beta

Two main executables are available inside the container:

  1. srs: The simple rtmp server binary, takes a configuration file, see examples.
  2. ffmpeg: Used by srs, but also useful for directly streaming and transcoding video/audio of various format.

Examples

These examples use fig.

server

This is a simple server that runs one instance of srs for both transcoding, dvr and outputing hls. It runs an instance of nginx to distribute hls.

ingest

This is a ingest configuration for streaming a flv file to the srs server for testing.

hsfztv

This setup is used on www.hsfz.tv for live streaming of a school event. The setup for this example is a bit more involved due to the need to support both audience in China and out around the world.

  • origin: This server runs near the streaming source, it transcodes input stream to 720p h264 + aac. It will then distribute this transcoded stream via rtmp to multiple edge servers.

  • edge: We run two of these servers. The edge server transcodes the 720p stream into 463p, 360p and 216p. It then generates hls files for all four qualities. However, keep in mind that these streams in adaptive hls are not quite synchronized.

  • cdn: We use cloudfront for distributing the hls stream, which is basically a bunch of static files. But we also spawn multiple cdn machines of our own using this configuration to provide for viewers inside China where cloudfront is unstable. Using this setup, we can scale up our max bandwidth without stressing the srs server.

hsfztv

srs-docker's People

Contributors

winlinvip avatar ziyan avatar

Watchers

 avatar  avatar

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.