- Open Visual Cloud CDN Transcode Sample
The CDN Transcode Sample is an Open Visual Cloud software stack with all required open source ingredients well integrated to provide out-of-box CDN media transcode service, including live streaming and video on demand. It also provides Docker-based media delivery software development environment upon which developer can easily build their specific applications.
The sample implements a reference server-side transcode system over CDN infrastructure, which features live streaming
and VOD
.
The CDN Transcode Sample contains below components:
- Dockerfiles
- Python web services source code
- BASH glue scripts
- HTML web pages
- CMakefiles
- Configuration files
- Documents
The CDN Transcode Sample may run on Linux* 64 bit operating systems. The list below represents the operating systems that the transcode application and library were tested and validated on:
- Ubuntu* 18.04.2 Server LTS
- CentOS* 7.6
Install Ubuntu 18.04.2/CentOS 7.6 on CDN-Transcode Server, and configure the IP address & proxy properly.
sudo -E ./script/install_dependency.sh
sudo mkdir -p /etc/systemd/system/docker.service.d
printf "[Service]\nEnvironment=\"HTTPS_PROXY=$https_proxy\" \"NO_PROXY=$no_proxy\"\n" | sudo tee /etc/systemd/system/docker.service.d/proxy.conf
sudo systemctl daemon-reload
sudo systemctl restart docker
Run below commands to build docker images
cd CDN-Transcode-Sample
mkdir build
cd build
cmake ..
make
Tips: It divides into two parts: master or slave ones
- Setup Kubernetes master environment for CentOS
- Setup Kubernetes master environment for Ubuntu
- Setup Kubernetes slave environment
- Setup NFS environment
Start CDN transcode service
make start_kubernetes
Tips: Configuration example for Kubernetes deploy
Stop CDN transcode service
make stop_kubernetes