Git Product home page Git Product logo

livego's Introduction

livego

直播服务器 简单高效的直播服务器:

  • 安装和使用非常简单;
  • 纯 Golang 编写,性能高,跨平台;
  • 支持常用的传输协议、文件格式、编码格式;

支持的传输协议

  • RTMP 适合延迟比较小3-4s
  • AMF
  • HLS 延迟一般在10s
  • HTTP-FLV 延迟一般在10s

支持的容器格式

  • FLV 支持flash格式
  • TS

支持的编码格式

  • H264
  • AAC
  • MP3

从源码编译

  1. 下载源码 git clone https://github.com/zhangjunfang/livego.git
  2. 去 livego 目录中 执行 go build

使用

  1. 启动服务:执行 livego 二进制文件启动 livego 服务;
  2. 上行推流:通过 RTMP 协议把视频流推送到 rtmp://localhost:1935/live/movie,例如使用 ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/live/movie 推送;
  3. 下行播放:支持以下三种播放协议,播放地址如下:
    • RTMP:rtmp://localhost:1935/live/movie
    • FLV:http://127.0.0.1:7001/live/movie.flv
    • HLS:http://127.0.0.1:7002/live/movie.m3u8

livego's People

Contributors

zhangjunfang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

livego's Issues

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.