Updated on 2022-03-13 GMT+08:00

Usage of the VENC

./sample_dvpp_hlt_ddk --in_image_file dvpp_venc_128x128_nv12.yuv --img_width 128 --img_height 128 --in_format 0 --yuvStoreType 0 --test_type 4

This command calls the VENC to encode a YUV image into a H.265 stream.

  • Input image:
    • An image whose width is 128 pixels, height is 128 pixels, format is YUV420SP NV12, and file name is dvpp_venc_128x128_nv12.yuv.
    • The input image file is in the same directory as the executable file.
    • in_format corresponds to coding_type in Input parameter: VencConfig.
    • yuvStoreType corresponds to YUV_store_type in Input parameter: VencConfig.
  • Output video:
    • The output stream file is venc.bin.
    • The output stream file is in the same directory as the executable file.
  • You can run the ffmpeg.exe -i venc.bin venc.jpg command to decode the venc.bin file by using FFmpeg, and then open the image by using image display software to check the correctness. The official FFmpeg website is http://ffmpeg.org/.