Sample Overview

Sample Obtaining

Visit the Ascend samples repository on Gitee and download the sample package that matches your CANN version in use. For the version mapping, see "Release Notes" in the README file. Find the "venc_image" sample in the python/level2_simple_inference/0_data_process/venc_image directory.

Function Description

In this sample, a YUV420SP NV12 image is encoded for n consecutive times to generate an H.265 video stream. (n is defaulted to 16. It is configurable and controlled by the venc_cnt parameter during app running.)

Directory Structure

The following is an example of the directory structure after the model file has been converted. The model folder is generated after the conversion.
venc_image
├──src
│ └── acl_venc.py // Video encoding implementation file
└── data
  └── dvpp_venc_128x128_nv12.yuv // Image file to be processed