[golang streaming media online live broadcast system] 2. Build a golang-based streaming media server to implement pull and push streams, and an Html client to pull hls type streams

1. Use Go language’s open source framework Livego to build a streaming media server

1.Introduction to the Livego framework

The Go language has powerful server performance . Golang solves the problem of multi-process concurrency at the language level , supports balanced use of multi-core CPUs , and supports massive lightweight threads , so it is very suitable for streaming media servers . Livego is a simple and efficient development based on golang. RTMP live broadcast server framework

2.Livego instructions

Livego Github address : https://github.com/gwuhaolin/livego
Chinese document address: https://github.com/gwuhaolin/livego/blob/master/README_cn.md
The instructions for using Livego are as follows:

Simple and efficient live broadcast server:

  • Very simple to install and use;
  • Written in pure Golang, high performance, 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

Install

        Method 1: Directly download the compiled binary file and execute it in the command line (

Guess you like

Origin blog.csdn.net/zhoupenghui168/article/details/132782237