Code Monkey home page Code Monkey logo

hls_slice's Introduction

simple hls live slince to mp4

恩.. 其實就是用於即時切 hls streaming 的小工具..

install

docker build . -t live_cuts
docker run --rm -p 8080:8080 live_cuts

open browser(chrome) http://localhost:8080

技術實現

主要是透過 bottle + subprocess 控制 ffmpeg 來實現 bottle 在抽象上就是一個single thread 的 web server, 在這案例上特別適合 主要就是負責即時處理 hls 直撥串流的小工具.. 又由於是single thread 的狀況下, bottle 基本上只是取代了介面的部分. 透過web ui 來觸發server 執行shell 指令和管理“ 如果在multi thread 需求面向再多輸入輸出的狀況下, 要處理就不適合這樣 但是在只需要處理一個直撥串流的情況下就很適合

bottle server --> streaming copy process
              |-> realtime covert to mp4 process 

hls_slice's People

Contributors

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