Build and Run the Transcode Sample on public cloud or local machine
The latest version of this document and other Transcode Sample documents can be found at the Github Wiki
The Open Visual Cloud is highly optimized for the latest Intel® Xeon® Scalable Processors. Developers can use their own x86 development system to build, customize, and evaluate Open Visual Cloud reference pipelines, or use a public cloud to assess system scalability and performance.
1. Create a compute cluster consisting 1 nodes in the cloud.
Machine config |
AWS |
GCP |
Azure |
Platform |
Skylake |
Skylake |
Skylake |
Machine Type |
m5.12xlarge |
n1-standard-32 |
Standard_D32s_v3 |
Zone |
Any |
Any |
Any |
Boot_disk_size |
200 |
200 |
60 |
Scratch_disk_size |
100 |
100 |
100 |
OS |
Amazon Linux 2 |
Ubuntu 16.04 |
Ubuntu 16.04 |
The above instance configurations should be able to support 4 clients in parallel.
2. Prerequisite
For AWS, run the following commands to install the software packages required to build the sample:
$ sudo yum update –y $ sudo amazon-linux-extras install –y docker $ sudo service docker start $ sudo yum install –y cmake git
For Azure and GCP, follow https://docs.docker.com/install/linux/docker-ce/debian/ to install docker.ce. Run the following command to install cmake and git
$ sudo apt-get install –y cmake git
Initialize docker swarm as we will use docker swarm for deployment.
$ sudo docker swarm init To add a worker to this swarm, run the following command: docker swarm join --token SWMTKN-1-5zc7a41qkmlnkzp27a8yiplj8kdpyl2tovs318h3p3mjst8ju4-7m25p4wowiytut5wvdxjcqzho ip
3. Clone the Sample Source Code
Run the following command to clone the CDN-Transcode-Sample source code
$ git clone https://github.com/OpenVisualCloud/CDN-Transcode-Sample
4. Build the Sample
Run the following commands to build the CDN-Transcode-Sample.
$ cd CDN-Transcode-Sample $ mkdir build $ cd build $ cmake .. $ cd xcode-server/ffmpeg-sw $ make $ cd cdn-server $ make $ cd deployment/docker-swarm $ make

5. Start the Sample Service
$ make start_docker_swarm Total reclaimed space: 465.8MB Ignoring unsupported options: restart Creating network ovc_default Creating service ovc_kafka Creating service ovc_kafka-init Creating service ovc_cdn-server Creating service ovc_vod-transcode-server Creating service ovc_live-transcode-server Creating service ovc_zookeeper Built target start_docker_swarm
6. Test the Sample
$ ssh -L 8443:localhost:443 -Nf -i "keypair.pem" perfkit@35.199.177.107
$ ssh -L 8443:localhost:443 -Nf -i ssh_private_key user_name@instance_public_ip
