Code Monkey home page Code Monkey logo

blss's Introduction

BLSS: Bravo Live Streaming Service

Powered Build Status Downloads

Media streaming server based on nginx-rtmp-module.

Features

  • All features of nginx-rtmp-module are inherited, i.e., it is 100% compatible with nginx-rtmp-module.

  • HTTP-based FLV live streaming support.

  • Dynamic GOP cache for low latency.

  • Socket sharding feature for higer performance (MUST be linux kernel 2.6 or later).

  • Ability to separate different users at top of application block (rtmp service{} block).

  • Dynamic matching virtual hosts supported.

  • Provide ability for relaying by bkdr hash function (relay_stream hash option).

Systems supported

  • Linux (kernel 2.6 or later are recommended)/FreeBSD/MacOS/Windows (limited).

Dependencies

Build

cd to NGINX source directory & run this:

./configure --add-module=/path/to/BLSS
make
make install

Get Started

  • Build BLSS module according to the section above.

  • Configure the nginx.conf file and start nginx.

  • Publish stream.

      ffmpeg -re -i live.flv -c copy -f flv rtmp://publish.com[:port]/appname/streamname
    
  • Play.

      ffplay rtmp://rtmpplay.com[:port]/appname/streamname # RTMP
      ffplay http://flvplay.com[:port]/appname/streamname  # HTTP based FLV
    

Example

worker_processes 8;   # multi-worker process mode
relay_stream hash;    # stream relay mode

rtmp {
    server {
        listen 1935 reuseport;

        service cctv {
            hostname pub rtmp publish.com;      # match rtmp push domain
            hostname sub rtmp rtmpplay.com;     # match rtmp pull domain
            hostname sub http_flv flvplay.com;  # match http-flv pull domain

            application live {
                live on;
                gop_cache on;
                gop_cache_count 5;  # cache 5 GOPs

                hls on;
                hls_fragment 10s;
                hls_playlist_length 30s;
            }
        }
    }
}

wechat QR code

Alt text

blss's People

Contributors

gnolizuh avatar

Watchers

 avatar  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.