Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

livego

> 开发工具
Open source

live video streaming server in golang

10.2K stars0 likes2 views
WebsiteGitHub

About

live video streaming server in golang

中文 Simple and efficient live broadcast server:

  • Very simple to install and use;
  • Pure Golang, high performance, and cross-platform;
  • Supports commonly used transmission protocols, file formats, and encoding formats;

Supported transport protocols

  • RTMP
  • AMF
  • HLS
  • HTTP-FLV

Supported container formats

  • FLV
  • TS

Supported encoding formats

  • H264
  • AAC
  • MP3

Installation

After directly downloading the compiled binary file, execute it on the command line.

Boot from Docker

Run docker run -p 1935:1935 -p 7001:7001 -p 7002:7002 -p 8090:8090 -d gwuhaolin/livego to start

Compile from source

  1. Download the source code git clone https://github.com/gwuhaolin/livego.git
  2. Go to the livego directory and execute go build or make build

Use

  1. Start the service: execute the livego binary file or make run to start the livego service;
  2. Get a channelkey(used for push the video stream) from http://localhost:8090/control/get?room=movie and copy data like your channelkey.
  3. Upstream push: Push the video stream to rtmp://localhost:1935/{appname}/{channelkey} through the RTMP protocol(default appname is live), for example, use ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/{appname}/{channelkey} push(download demo flv);
  4. Downstream playback: The following three playback protocols are supported, and the playback address is as follows:
    • RTMP:rtmp://localhost:1935/{appname}/movie
    • FLV:http://127.0.0.1:7001/{appname}/movie.flv
    • HLS:http://127.0.0.1:7002/{appname}/movie.m3u8
  5. Use hls via https: generate ssl certificate(server.key, server.crt files), place them in directory with executable file, change "use_hls_https" option in livego.yaml to true (false by default)

all options:

…

Use with flv.js

Interested in Golang? Please see Golang Chinese Learning Materials Summary

Issues· 139 open

View all issuesOpen on GitHub
  • #34

    Windows下用ffmpeg推流失败, 求帮忙

    Updated Feb 27, 2026
  • #175

    推流报错

    Updated Feb 27, 2026
  • #84

    panic: runtime error: slice bounds out of range

    Updated Feb 27, 2026
  • #231

    持续推流中断 转FLV

    Updated Feb 24, 2026
  • #247

    关于“packet queue max!!!”相关问题的解法

    Updated Apr 15, 2025
  • #243

    Conflict Between Nginx RTMP Module and LiveGo Service on Port 1935

    Updated Mar 28, 2025
  • #241

    播放HLS提示 no publisher

    Updated Mar 27, 2025
  • #208

    请教造成“packet queue max”的原因分析

    Updated Mar 26, 2025
  • #45

    flv 格式有什么要求么

    Updated Jan 8, 2025
  • #200

    请问查询所有房间的接口有吗

    Updated Dec 29, 2024

> Tags

Goflashflvgolangh264

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具