VENC Functions and Restrictions

The Atlas 200/300/500 Inference Product does not support the VENC function described in this section.

The Atlas Training Series Product does not support the VENC function described in this section.

Function Description

Video Encoder (VENC) encodes YUV420SP NV12/NV21 8-bit images into H.264/H.265 video streams.

Restrictions on Stream/Image Formats, Width and Height Alignment, and Buffers

Table 1 Restrictions on the image format, width and height alignment, and buffer size

Input Format

Input Width and Height

Input Width Stride, Height Stride, and Buffer Size

Output Format

YUV420SP NV12 8-bit

Width: Must be a multiple of 2.

Height: Must be a multiple of 2.

Width stride: Round up the width to the nearest multiple of 16.

The height stride does not need to be configured.

Buffer size (in bytes) = Width stride x Height x 3/2

  • H.264 BP/MP/HP
  • H.265 MP (slice streams only)

YUV420SP NV21 8-bit

For details about the definition of the input image format, see hi_pixel_format. For details about the concepts such as width stride and height stride, see Terminology.