How to install gwuhaolin/livego. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.
gwuhaolin/livego Installation Guide
How to install gwuhaolin/livego. Official project installation instructions and setup guide.
⚡
Automated Install (Recommended)
Quick installation instructions for gwuhaolin/livego. This is the fastest way to complete project installation and setup.
Install via curl
curl -fsSL https://hexmos.com/ipm-install | bash &&
ipm i gwuhaolin/livegoor
Install via npx
npx @hexmos/ipm i gwuhaolin/livegoPrerequisites
Golang
languageVersion: >1.16.0
Docker
system_toolFor running the livego server in a container.
Git
system_packageVersion: 2.30.1
ffmpeg
build_toolFor transcoding video streams.
Manual Installation Methods
Manual installation instructions. How to install from GitHub source.
Build and Run from Source
make runBinary Installation
./livego -hPost Installation Steps
- Start the livego service: execute the livego binary file or `make run` to start the livego service.
- Get a channelkey(used for push the video stream) from `http://localhost:8090/control/get?room=movie` and copy data like your channelkey.
- 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](https://s3plus.meituan.net/v1/mss_7e425c4d9dcb4bb4918bbfa2779e6de1/mpack/default/demo.flv));
- 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`
- Use hls via https: generate ssl certificate(server.key, server.crt files), place them in directory with executable file, change
