go-livepeer using a
binary release, a Docker image, or from source.
Install using a Binary Release
Dependencies
Darwin (macOS)
Linux
Linux GPU
There is a separate binary which supports transcoding on the NVIDIA GPU. The requirement for this binary is to have version 12 of the CUDA Toolkit installed on your machine.Windows
At this time Livepeer does not provide automatic updates. You can perform a
manual update or use a script. A community-created Bash script to update
Livepeer is available on the livepeer
Forum.
Third-party packages
Packages for different Linux distributions are maintained by Livepeer community members. Before using these packages, please verify that they have been updated to use the latest builds of go-livepeer. This list will be updated as a best-effort, but we cannot guarantee if individual packages are up to date or verify their integrity. In the future, Livepeer core contributors may publish official packages for the distributions below.| Platform | Installation | Source | 
|---|---|---|
| Arch Linux | paru go-livepeer-bin | https://aur.archlinux.org/packages/go-livepeer-bin/ | 
Install using a Docker image
Prerequisites
If you do not have Docker installed, you will need to install it using the guide here before running the commands below.Installation
With every release, Docker images are pushed to DockerHub.Running livepeer-cli with Docker
Once you’ve pulled the image, retrieve the image id and start the container. Any flags you provide will be passed to the binary, so you can pass your configuration flags here.Installing pre-releases with Docker
To pull the latest pre-release version:Build from source
System dependencies
Buildinglivepeer requires some system dependencies.
Linux (Ubuntu: 16.04 or 18.04)
Linux (Ubuntu: 20.04 or newer)
Linux GPU support
To enable transcoding using Nvidia GPUs on Linux systems- CUDA Toolkit must be installed on the system and available on the LIBRARY_PATH
- clangmust be installed as well. The script that will install- ffmpegdependencies uses- which clangcommand to determine whether- clangis installed or not. Please check this on your system. If the path is empty, please install- clang. For example on the Ubuntu machine one can do
Darwin (macOS)
Go
Buildinglivepeer requires Go. Follow the
official Go installation instructions.
Build and install
- Clone the repository:
- Install ffmpegdependencies:
- Set build environment variables.
PKG_CONFIG_PATH variable so that pkg-config can find the ffmpeg
dependency files installed in step 2:
BUILD_TAGS variable to enable mainnet support:
- Build and install livepeer:
Troubleshooting
Error while loading shared libraries
You may encounter the following issue when running thelivepeer binary.
livepeer instead of livepeer-gpu. However, if you wish to use GPU transcoding, please ensure that the CUDA Toolkit is installed and add its path to the shared libraries path.