Sorry, you need to enable JavaScript to visit this website.

Build and Run the Transcode Sample on public cloud or local machine

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
Make sure the following images have been built in the machine. The images with tag “build” are not used in the deployment. 
 

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

The CDN Sample exposes a web interface at port 443. We need to create a SSH tunnel to access it, as follows:
For AWS
 
$ ssh -L 8443:localhost:443 -Nf -i "keypair.pem" perfkit@35.199.177.107
 
The SSH tunnel maps localhost port 443 to the AWS EC2 instance port 443, and “keypair.pem” is the ssh access key pair generated for accessing the AWS EC2 instance.
 
For Azure or GCP, the command is almost the same
 
$ ssh -L 8443:localhost:443 -Nf -i ssh_private_key user_name@instance_public_ip
 
ssh_private_key is ssh access private key for accessing Azure or GCP VM instances.
 
Open your browser to https://localhost:8443 and accept the self-signed certificate to proceed to the sample UI.