mxpi_bufferstablizer
Function |
When no buffer is input during a specified period, this plugin automatically sends an empty buffer until there is a new buffer input. NOTE:
After this plugin is connected to a video decoding plugin, the service stream can continue to run when a video stream is interrupted. |
|---|---|
Synchronous/Asynchronous (Status) |
Asynchronous |
Constraints |
None |
Plugin Base Class (Factory) |
mxpi_bufferstablizer |
Input/Output |
Input: buffer (data type: MxpiBuffer) Output: buffer (data type: MxpiBuffer) |
Port Format (Caps) |
Static input: {"ANY"} Static output: {"ANY"} |
Property |
For details, see Table 1. |
Property Name |
Description |
Mandatory or Not |
Modifiable or Not |
|---|---|---|---|
tolerance |
Tolerance time, in milliseconds. The minimum value is 1, and the default value is 10000. If no input buffer is received within the tolerance time, this plugin automatically sends empty buffers (empty buffer sending mode). |
Yes |
Yes |
frequency |
Interval for automatically sending an empty buffer, in milliseconds. The minimum value is 1, and the default value is 100. |
Yes |
Yes |
allowDelay |
Whether to destroy buffers that have been replaced after the automatic empty buffer sending mode is exited. The value is of the Boolean type, and the options are 0 (yes) and 1 (no). The default value is 0. |
Yes |
Yes |
Pipeline sample:
"mxpi_bufferstablizer0": {
"props": {
"tolerance": "10000",
"frequency": "100",
"allowDelay": "0"
},
"factory": "mxpi_bufferstablizer",
"next": "queue400"
},