Giter Site home page Giter Site logo

rtsptohlsll's Introduction

RTSPtoHLSLL

Description

RTSP Stream to WebBrowser over HLS Low Latency

full native! not use ffmpeg or gstreamer

1. you need https!!!

2. work in progress!!!

3. unstable!!!

Limitations

  1. This is a temporary project that's not finished yet.
  2. For low latency hls to work well on IOS, you need https without it, you get regular HLS!
  3. Remember this is not a production project this is an example.

Video Codecs Supported: H264 / H265 (H265 only IE or Safari)

Audio Codecs Supported: AAC

Download Source

  1. Download source
    $ git clone https://github.com/deepch/RTSPtoHLSLL  
  2. CD to Directory
     $ cd RTSPtoHLSLL/
  3. Test Run
     $ GO111MODULE=on go run *.go
  4. Open Browser
    open web browser https://you_domain.com or not recommendet (http://127.0.0.1:8083)

Get started (configure)

Open config file and edit

  1. Go to source directory

    $GOPATH/src/github.com/deepch/RTSPtoHLSLL/
  2. open file config.json to edit mcedit nano or other text editor

    mcedit config.json
  3. Configure you DNS name, need domain (example.com) and external IP (white) ######(if you skip this step it may work as hls without LL as it requires http 2.0)

  4. Configure you dns name

    {"server": {
       "http_server_name": "example.com",
       "http_port":        ":80",
       "https_port":       ":443"
    }}
  5. If you know exactly the FPS of your stream, it is better to specify it in the config.

fps_mode

   fixed  - read config value fps 
   sdp    - read fps send by camera sdp
   sps    - read fps over sps vui 
   probe  - cal fps over interval (default)
   pts    - use pts unstable ;(  

####example

   {"streams": {
      "H264_AAC": {
          "on_demand": false,
          "url": "rtsp://171.25.232.20/d7b92541b4914c8e98104cba907864f8",
          "fps_mode": "probe",
          "fps_probe_time": 2,
          "fps": 25
      }
   }}

Run

  1. Run source code
$ go run .
  1. Build source code
$ go build .

Team

Deepch - https://github.com/deepch streaming developer

Dmitry - https://github.com/vdalex25 web developer

Worked Browser

  1. Safari - Mac OS
  2. Chrome - Mac OS
  3. Safari - IOS

Other Example

Examples of working with video on golang

paypal.me/AndreySemochkin - You can make one-time donations via PayPal. I'll probably buy a coffee tea. ๐Ÿต

rtsptohlsll's People

Contributors

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