Giter VIP home page Giter VIP logo

myhls's Introduction

MyHls

MyHls是一个基于windows的轻量级hls服务,可拉取摄像头rtsp流以hls进行分发,其特点是内存切片且进行session处理,网络好的情况延时在1秒以内,它是基于ffmpeg库和mongoose进行开发的所以代码量很少,工程使用c++11 在visual studio2015运行,经过少量修改即可移植到linux。运行程序以后,用支持html5浏览器打开http://localhost:8070,添加拉流rtsp地址,要注意的是斜杠需用%替换如:rtsp://192.168.1.11 应写成rtsp:%%192.168.1.11,添加完以后点play按钮即可播放
QQ群:569895682

目前支持功能:

1、快速切片。

2、拉取rtsp。

3、推rtsp。

后续支持:

1、rtsp分发。

API:

Play/tag 播放某个tag

AddPull/tag/pullAddress

添加拉模式,执行此API以后,服务会自主去拉取pullAddress所指向的rtsp地址

例如 ''' http://localhost:50010/AddPull/aa/rtsp:%%192.168.1.11 ''' 即向服务器添加了一个标签为aa的输入流,它的拉流地址是rtsp:%%192.168.1.11,其中/用%替换

AddPush/tag/

添加推模式,执行此API以后,服务会返回一个push地址,会侦听30秒,在30秒内使用MyPush给它推流 例如

http://localhost:50010/AddPush/aa

返回 ''' {"ret":0,"data":{"type":push,"pushUrl":"rtsp://localhost:40000/live.sdp","pullUrl":"http://localhost:50010/Play/0"},"message":"connect in 30 seconds"} ''' 在30秒内使用MyPush对rtsp://localhost:40000/live.sdp进行推流即可

GetPullList

获取所有客户端连接信息

GetUsage 获取服务器的CPU,内存,IO,句柄,线程等信息

myhls's People

Contributors

sanfooh avatar 725qy avatar

Watchers

James Cloos 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.