我要评分
获取效率
正确性
完整性
易理解

Creating a Video Stream Cloud Phone Image

Obtain the TAR packages of the video stream engine client and server, binary package of the video stream engine, and the TAR package of the video stream NETINT encoding card to create a video stream cloud phone image. If you want to start a video stream cloud phone with containerd, use Docker to export an image that complies with the OCI and use nerdctl to import the image for containerd.

Verifying Software Package Integrity

  1. Obtain CloudPhoneApk.tar.gz, DemoVideoEngine.tar.gz, and BoostKit-videoengine_*.zip based on Video Stream Engine and upload them to the /home/kbox_video directory on the server.
  2. Obtain the SHA256 verification codes of the following components.
    1
    2
    sha256sum DemoVideoEngine.tar.gz
    sha256sum CloudPhoneApk.tar.gz
    
  3. Compare the obtained verification codes with DemoVideoEngine_sha256.txt and CloudPhoneApk_sha256.txt.

    If the codes are consistent, the obtained software packages are complete and you can proceed with the following operations. If not, stop the deployment and obtain the complete software packages.

  4. (Configuration scheme 1) If hardware configuration scheme 1 is used, obtain the NETINT-vXXX.tar.gz package based on Video Stream Engine, upload the package to the /home/kbox_video directory on the server, and rename the package NETINT.tar.gz.
    • The NETINT.tar.gz package for Quadra is different from that for T432. Select the correct version.
    • NETINT Quadra is the next generation of the NETINT T432 encoding card. The following content uses the Quadra encoding card as an example. You can refer to the content as well if the T432 encoding card is used.

Creating an Image

  1. Decompress the DemoVideoEngine.tar.gz package to obtain the image creation script and grant the execute permission on the script.
    • Configuration scheme 1:
      1
      2
      tar -xvf DemoVideoEngine.tar.gz Dockerfile_NoVPU Dockerfile_T432 Dockerfile_QuadraT2A make_image.sh
      chmod +x Dockerfile_NoVPU Dockerfile_T432 Dockerfile_QuadraT2A make_image.sh
      
    • Configuration scheme 2:
      1
      2
      tar -xvf DemoVideoEngine.tar.gz Dockerfile_NoVPU  make_image.sh
      chmod +x Dockerfile_NoVPU  make_image.sh
      
  2. Create a video stream cloud phone image. You can use the default image name or specify an image name.
    • If the default image name is used, run the following command. The default image names of the Kbox basic cloud phone and video stream cloud phone are kbox:latest and video:latest, respectively.
      1
      ./make_image.sh
      
    • If a customized image name is used, run the following command. Specify the image names of the Kbox basic cloud phone and video stream cloud phone in the format of {image_name}:{tag}. In the following command, kbox and video are image names, and origin and latest are tags.
      1
      ./make_image.sh kbox:origin video:latest
      

      The image name can contain only digits and lowercase letters, and must start with a lowercase letter. The tag can contain only digits and letters. If the image name of the video stream cloud phone is changed, refer to Creating a Base Data Volume and change the image name in the cfct_config file to the customized image name.

  3. Check whether the video stream cloud phone image (video:latest) is successfully created.
    1
    docker images
    

    If the following information is displayed, the image is successfully created:

    1
    2
    REPOSITORY    TAG       IMAGE ID        CREATED          SIZE
    video         latest    40e5f42c17d9    6 seconds ago    2.11GB
    

If you start a video stream cloud phone with containerd, perform the following steps to use Docker to export an image that complies with the OCI and use nerdctl to import the image for containerd.

  1. Export the prepared video stream cloud phone image. The following uses image video:latest as an example. (The name of the TAR package can be customized.)
    1
    docker save video:latest > videolatest_oci.tar
    
  2. Use nerdctl to import the video stream cloud phone image that complies with the OCI.
    1
    nerdctl load -i videolatest_oci.tar
    
  3. Confirm that the image has been successfully imported.
    1
    nerdctl images
    
  4. Create a containerd_config file so that the script can identify containerd as the runtime.
    1
    2
    cd /home/kbox_video
    touch containerd_config
    

    To use Docker as the default container time of the video stream cloud phone, delete the containerd_config file.

  5. Allow the network packet forwarding policy.
    1
    iptables -P FORWARD ACCEPT