mxpi_videoencoder
Function |
Encodes videos. |
|---|---|
Synchronous/Asynchronous (Status) |
Asynchronous |
Constraints |
|
Plugin Base Class (Factory) |
mxpi_videoencoder |
Input/Output |
|
Port Format (Caps) |
|
Property |
For details, see Table 1. |
Property Name |
Description |
Mandatory or Not |
Modifiable or Not |
|---|---|---|---|
iFrameInterval |
Video I-frame interval. The value range is [1, 2000]. The default value is 30. |
No |
Yes |
imageHeight |
Input image height. The default value is 1080.
|
No |
Yes |
imageWidth |
Input image width. The default value is 1920.
|
No |
Yes |
fps |
Whether to print the video encoding frame rate. The default value is 0. The value can only be 0 or 1.
|
No |
Yes |
dataSource |
Index of the input data (generally the name of the upstream element). The default value is the key value of the output port of the upstream plugin. |
No |
Yes |
inputFormat |
Input image format. The default format is YUV420SP_NV12. Currently, only YUV420SP_NV12 or YUV420SP_NV21 is supported. |
No |
Yes |
outputFormat |
Output stream format. The default format is H.264. Only H.264 or H.265 is supported. |
No |
Yes |
vencChannelId |
Stream channel ID. The VENC and JPEGE share the same channel. The default value is 0.
|
No |
Yes |
rcMode |
Bit rate control mode. The default value is 2. Possible values are as follows:
|
No |
Yes |
srcRate |
Frame rate (fps) of the input stream. The default value is 30. The value range is [1, 120]. |
No |
Yes |
maxBitRate |
Output bit rate (kbps). The default value is 300. The value range is [10, 30000]. |
No |
Yes |
ipProp |
Ratio of the number of bits in a single I frame to the number of bits in a single P frame in a GOP. The default value is 70 in CBR mode and 80 in VBR mode. The value range is [1, 100]. NOTE:
This property is not supported by the Atlas inference product. |
No |
Yes |
frameReleaseTimeOut |
Maximum duration for storing video frames in the memory. The default value is 5, in seconds. The value range is [1, 10]. You need to adjust the timeout period based on service requirements. A longer timeout period indicates higher video quality, but occupies more memory and deteriorates performance. |
No |
Yes |