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

Stargazers

Liviu Birjega avatar  avatar Jean Leao avatar Vasilev Pyotr avatar James avatar  avatar Son N. Nguyen avatar Jerod avatar  avatar  avatar  avatar Yury Popov avatar  avatar Jesús Leganés-Combarro avatar Azrin Aris avatar  avatar Daniel Phingston avatar CloudWebRTC avatar  avatar  avatar dexter avatar yi.lv avatar Sergey Shiganov avatar Jason Paul avatar ik5 avatar  avatar

Watchers

Ildar avatar James Cloos avatar  avatar Sergey Shiganov avatar  avatar

rtsptohlsll's Issues

How to connect with https

I have try to connect http://xxxxx:8083, it works fine.
when I try to connect https://xxxxx:443, the browser can't build security connection.
the server log http: TLS handshake error from xxxx:1662: acme/autocert: host "xxxx" not configured in HostWhitelist
Is there any requirement about the https connection, for example, the certification trust issue?

[Question] Inquiry about Latency Discrepancy in RTSPtoHLSLL Project

I've been exploring the RTSPtoHLSLL project. However, I noticed a significant difference in latency when accessing the RTSP stream in a web browser (1-2 seconds) compared to VLC player (20-21 seconds).

I understand that VLC player might introduce additional latency due to its buffering and playback mechanisms. However, I wanted to inquire if there are specific settings or considerations within the project or VLC player that can be adjusted to minimize latency when using VLC.

Additionally, if there are any recommended configurations or best practices for achieving lower latency with VLC player in the context of the RTSPtoHLSLL project, I would greatly appreciate any insights you could provide.

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.