Red5 Pro Core SDK – Linux
The Red5 Pro Linux Streaming SDK provides support for broadcasting a live stream with video on the following platforms:
- x86-64 (e.g., Ubuntu 20.04 x86)
This document will introduce you to the Red5 Pro Linux Streaming SDK API and instruct you in using the SDK to begin streaming on x86-64.
You will need the latest Red5 Pro Linux Streaming SDK before you begin.
ARM (e.g., Raspberry Pi) will be supported with the 1.5.0 release
How to Build the Linux Examples
Install prerequisites
- CMake
- GCC
You can use apt-get
for Ubuntu/Debian-based systems; for other Linux distributions, you can use dnf
. For other options, like shell script installation and binary distributions, see the instructions here CMake.org. Remember that you will still need to install GCC if you use an alternate installation method.
sudo apt-get install g++ make cmake unzip
Make a local directory
mkdir ~/Red5Core
Download & Unzip Red5 Pro Core SDK
Download the Red5 Pro Core SDK distribution and save to ~/Red5Core
cd ~/Red5Core
unzip <distribution>.zip
Set the environment variable for CMake
export CMAKE_PREFIX_PATH=~Red5Core/<distribution>/cmake
Create, compile and execute build files
While in the ~/Red5Core/$DISTRIBUTION/examples directory, execute the following commands
Create build files
cmake .
Build examples
make
Execute the basic example
For each example, see the README for the expected behavior.
./r5sdk_example_basic