App Running

The sample procedure applies to the following products:

  • Atlas 200/300/500 Inference Product
  1. Log in to the operating environment.
  2. Prepare input data. Obtain the input image file dvpp_venc_128x128_nv12.yuv (link) and upload it to the data directory under the venc_image directory sample in the development environment as the HwHiAiUser user (running user).
  3. Configure the operating environment by referring to Environment Variable Configuration.
  4. Run the following command in venc_image:
    python3 ./src/acl_venc.py
  5. Check the execution result. You should find the following information upon execution success:
    [INFO] start_thread 46994427340544 0
    [INFO] cb_thread_func args_list =  52200976 1000 True
    [INFO] set venc channel desc
    [INFO] create_frame_config
    [INFO] set pic desc size
    [INFO] set frame config
    [INFO] [venc] stream_data size 5431
    [INFO] [venc] stream_data size 704
    [INFO] [venc] stream_data size 693
    [INFO] [venc] stream_data size 922
    [INFO] [venc] stream_data size 1153
    [INFO] [venc] stream_data size 689
    [INFO] [venc] stream_data size 857
    [INFO] [venc] stream_data size 1273
    [INFO] [venc] stream_data size 785
    [INFO] [venc] stream_data size 976
    [INFO] [venc] stream_data size 869
    [INFO] [venc] stream_data size 1445
    [INFO] venc send frame eos
    [INFO] [venc] stream_data size 845
    [INFO] [venc] stream_data size 1003
    [INFO] [venc] stream_data size 922
    [INFO] [venc] stream_data size 905
    [INFO] acl.media.venc_send_frame ret= 0
    [INFO] venc process success
    [INFO] venc_process end
    [INFO] cb_thread_func acl.rt.destroy_context ret= 0
    [INFO] stop_thread 0
    [INFO] thread join
    [INFO] free resource